~ubuntu-branches/ubuntu/saucy/intlfonts/saucy

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2003-11-13 08:31:28 UTC
  • Revision ID: james.westby@ubuntu.com-20031113083128-twlakixijcdvb52u
Tags: upstream-1.2.1
ImportĀ upstreamĀ versionĀ 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
fontdir = @fontdir@
 
2
srcdir =@srcdir@
 
3
 
 
4
BDFTOPCF  = bdftopcf
 
5
MKFONTDIR = mkfontdir
 
6
COMPRESS  = @compress@
 
7
 
 
8
RM        = rm -f
 
9
SHELL     = /bin/sh
 
10
 
 
11
INSTALL   = @INSTALL@
 
12
 
 
13
SUBDIRS =       European Asian Chinese Japanese Ethiopic Misc
 
14
SUBDIRS_X =     Chinese.X Japanese.X Korean.X
 
15
SUBDIRS_BIG =   European.BIG Chinese.BIG Japanese.BIG
 
16
 
 
17
TARGETS = @targets@
 
18
 
 
19
all:
 
20
 
 
21
install: ${TARGETS}
 
22
 
 
23
distclean: clean
 
24
        $(RM) config.* Makefile
 
25
 
 
26
clean:
 
27
 
 
28
pcf: FRC
 
29
        @if [ -d ${fontdir} ] ; then \
 
30
          echo "Deleting PCF fonts installed by the previous intlfonts..." ; \
 
31
          $(SHELL) ${srcdir}/rmoldfnt.sh ${fontdir} ; \
 
32
        else \
 
33
          $(INSTALL) -d ${fontdir} ; \
 
34
        fi
 
35
        @if [ -f ${fontdir}/fonts.alias ] ; then \
 
36
          cat ${fontdir}/fonts.alias > ${fontdir}/temp ; \
 
37
        else \
 
38
          rm -f ${fontdir}/temp ; \
 
39
        fi
 
40
        @for dirs in ${SUBDIRS} ${SUBDIRS_X} ${SUBDIRS_BIG}; do \
 
41
          if [ -d ${srcdir}/$${dirs} ] ; then \
 
42
            for f in ${srcdir}/$${dirs}/*.bdf; do \
 
43
              FONT=`basename $${f} .bdf`.pcf ; \
 
44
              echo "Installing ${fontdir}/$${FONT}..." ; \
 
45
              $(BDFTOPCF) $${f} > ${fontdir}/$${FONT} ; \
 
46
            done ; \
 
47
            if [ -f ${srcdir}/$${dirs}/fonts.alias ] ; then \
 
48
              cat ${srcdir}/$${dirs}/fonts.alias >> ${fontdir}/temp ; \
 
49
            fi ; \
 
50
          else true; fi ; \
 
51
        done
 
52
        @if [ -f ${fontdir}/temp ] ; then \
 
53
          sort < ${fontdir}/temp | uniq > ${fontdir}/fonts.alias ; \
 
54
          rm -f ${fontdir}/temp ; \
 
55
        fi
 
56
        @if [ "${COMPRESS}" != "no" ] ; then \
 
57
          echo "Compressing PCF fonts by ${COMPRESS}..." ; \
 
58
          rm -f ${fontdir}/*.pcf.* ; \
 
59
          ${COMPRESS} ${fontdir}/*.pcf ; \
 
60
        fi
 
61
        @echo "Making ${fontdir}/fonts.dir..."
 
62
        $(MKFONTDIR) ${fontdir}
 
63
        @echo "-----------------------------------------------------------"
 
64
        @echo "Read README for how to inform X server about the new fonts."
 
65
        @echo "-----------------------------------------------------------"
 
66
 
 
67
bdf: FRC
 
68
        @if [ -d ${fontdir}/bdf ] ; then \
 
69
          echo "Deleting BDF fonts installed by the previous intlfonts..." ; \
 
70
          $(SHELL) ${srcdir}/rmoldfnt.sh ${fontdir}/bdf ; \
 
71
        else \
 
72
          $(INSTALL) -d ${fontdir}/bdf ; \
 
73
        fi
 
74
        @echo "Installing BDF fonts..."
 
75
        @for dirs in ${SUBDIRS} ${SUBDIRS_X} ${SUBDIRS_BIG}; do \
 
76
          if [ -d ${srcdir}/$${dirs} ] ; then \
 
77
            for f in ${srcdir}/$${dirs}/*.bdf; do \
 
78
              $(INSTALL) -m 0444 $${f} ${fontdir}/bdf ; \
 
79
            done ; \
 
80
          else true; fi ; \
 
81
        done
 
82
 
 
83
type1: FRC
 
84
        @if [ -d ${srcdir}/Type1 ] ; then \
 
85
          [ -d ${fontdir}/Type1 ] || $(INSTALL) -d ${fontdir}/Type1 ; \
 
86
          echo "Installing Type1 fonts..." ; \
 
87
          for f in ${srcdir}/Type1/*.?f?; do \
 
88
            $(INSTALL) -c -m 0444 $${f} ${fontdir}/Type1 ; \
 
89
          done ; \
 
90
        else \
 
91
          echo "No Type1 fonts" ; \
 
92
        fi
 
93
 
 
94
truetype: FRC
 
95
        @if [ -d ${srcdir}/TrueType ] ; then \
 
96
          [ -d ${fontdir}/TrueType ] || $(INSTALL) -d ${fontdir}/TrueType ; \
 
97
          echo "Installing TrueType fonts..." ; \
 
98
          for f in ${srcdir}/TrueType/*.ttf; do \
 
99
            $(INSTALL) -c -m 0444 $${f} ${fontdir}/TrueType ; \
 
100
          done ; \
 
101
        else \
 
102
          echo "No TrueType fonts" ; \
 
103
        fi
 
104
 
 
105
FRC:
 
106
 
 
107
# Automatic makefile rebuilding
 
108
Makefile: $(srcdir)/Makefile.in config.status
 
109
        ./config.status
 
110
 
 
111
$(srcdir)/configure: $(srcdir)/configure.in
 
112
        cd $(srcdir) && autoreconf
 
113
 
 
114
./config.status: $(srcdir)/configure
 
115
        cd . && ./config.status --recheck