2 ###############################################################################
3 # MODULE : Makefile for the main TeXmacs fonts which are not in Bluesky
4 # and not in the essential font package
5 # BY : Joris van der Hoeven
6 # COPYRIGHT : This software falls under the GNU general public license;
7 # see the file 'LICENSE', which is provided with this package.
8 ###############################################################################
10 MFTRACE
= mftrace
--autotrace
--formats
=pfb
12 PFBDIR
= $(PWD
)/TeXmacs
/fonts
/type1
13 TFMDIR
= $(PWD
)/TeXmacs
/fonts
/tfm
23 $(MKDIR
) TeXmacs
/fonts
27 $(MKDIR
) $(TFMDIR
)/math
32 $(MKDIR
) $(PFBDIR
)/math
35 ###############################################################################
36 # Building the tfm files
37 ###############################################################################
39 #ec_root = ecrm ecsl ecti eccc ecbx ecxc ectt ecss
40 ec_root
= ecdh ecbl ecbi ecrb ecoc ecst ectc ecvt ecvi ecsi ecsx ecso ecss \
43 la_root
= lasl lati lacc ladh labx labl labi laxc \
44 latt last lass lasi lasx laso
46 math_root
= bbmsl bbmbx bbmbxsl bbmss grmn grxn euxm \
48 tc_root
= tcrm tcsl tcbx tcbi tcss tcsx tctt
50 $(patsubst %,%5$(2),$(1)) $(patsubst %,%6$(2),$(1)) \
51 $(patsubst %,%7$(2),$(1)) $(patsubst %,%8$(2),$(1)) \
52 $(patsubst %,%9$(2),$(1)) $(patsubst %,%10$(2),$(1)) \
53 $(patsubst %,%11$(2),$(1)) $(patsubst %,%12$(2),$(1)) \
54 $(patsubst %,%14$(2),$(1)) $(patsubst %,%17$(2),$(1)) \
55 $(patsubst %,%20$(2),$(1)) $(patsubst %,%24$(2),$(1))
56 ec_series
:= $(call find_series
,$(ec_root
),)
57 la_series
:= $(call find_series
,$(la_root
),00)
58 math_series
:= $(call find_series
,$(math_root
),)
59 tc_series
:= $(call find_series
,$(tc_root
),)
60 find_tfm
= $(patsubst %,$(TFMDIR
)/$(2)/%.tfm
,$(1))
61 ec_tfm
:= $(call find_tfm
,$(ec_series
),ec
)
62 la_tfm
:= $(call find_tfm
,$(la_series
),la
)
63 math_tfm
:= $(call find_tfm
,$(math_series
),math
)
64 tc_tfm
:= $(call find_tfm
,$(tc_series
),tc
)
66 $(ec_tfm
): $(TFMDIR
)/ec
/%.tfm
:
67 $(MKTEXTFM
) --destdir
$(TFMDIR
)/ec
$*
68 $(RM
) $(TFMDIR
)/ec
/$*.600pk
70 $(la_tfm
): $(TFMDIR
)/la
/%.tfm
:
71 $(MKTEXTFM
) --destdir
$(TFMDIR
)/la
$*
72 $(RM
) $(TFMDIR
)/la
/$*.600pk
74 $(math_tfm
): $(TFMDIR
)/math
/%.tfm
:
75 $(MKTEXTFM
) --destdir
$(TFMDIR
)/math
$*
76 $(RM
) $(TFMDIR
)/math
/$*.600pk
78 $(tc_tfm
): $(TFMDIR
)/tc
/%.tfm
:
79 $(MKTEXTFM
) --destdir
$(TFMDIR
)/tc
$*
80 $(RM
) $(TFMDIR
)/tc
/$*.600pk
82 tfm
: $(ec_tfm
) $(la_tfm
) $(math_tfm
) $(tc_tfm
)
84 ###############################################################################
85 # Building the pfb files
86 ###############################################################################
88 #ec_target = ecrm10 ecsl10 ecti10 eccc10 ecbx10 ecxc10 ectt10 ecss10
90 ecrm5 ecrm7 ecrm12 ecrm17 ecsl7 ecsl12 \
91 ecti7 ecti12 ecff10 eccc7 eccc12 ecdh10 \
92 ecbx7 ecbx12 ecbx17 ecbl10 ecbi10 ecrb10 \
93 ecxc12 ecxc17 ecoc10 \
94 ectt7 ectt12 ecst10 ectc10 ecvt10 ecvi10 \
95 ecss7 ecss12 ecsi10 ecsx10 ecso10 ecssdc10 \
96 eorm10 eosl10 eoti10 eocc10
100 larm700 lasl1000 lati1000 lacc1000 ladh1000 \
101 labx1000 labx1700 labl1000 labi1000 laxc1000 \
103 lass1000 lasi1000 lasx1000 laso1000
107 bbm7 bbmsl10 bbmbx7 bbmbx10 bbmbxsl10 bbmss10 \
110 bbold7 bbold10 dsrom8 dsrom10 dsss8 dsss10
113 tcrm10 tcsl10 tcbx10 tcbi10 tcss10 tcsx10 tctt10
115 find_pfb
= $(patsubst %,$(PFBDIR
)/$(2)/%.pfb
,$(1))
116 ec_pfb
:= $(call find_pfb
,$(ec_target
),ec
)
117 la_pfb
:= $(call find_pfb
,$(la_target
),la
)
118 math_pfb
:= $(call find_pfb
,$(math_target
),math
)
119 tc_pfb
:= $(call find_pfb
,$(tc_target
),tc
)
121 $(ec_pfb
): $(PFBDIR
)/ec
/%.pfb
:
122 $(CD
) $(PFBDIR
)/ec
; $(MFTRACE
) $*
124 $(la_pfb
): $(PFBDIR
)/la
/%.pfb
:
125 $(CD
) $(PFBDIR
)/la
; $(MFTRACE
) $*
127 $(math_pfb
): $(PFBDIR
)/math
/%.pfb
:
128 $(CD
) $(PFBDIR
)/math
; $(MFTRACE
) $*
130 $(tc_pfb
): $(PFBDIR
)/tc
/%.pfb
:
131 $(CD
) $(PFBDIR
)/tc
; $(MFTRACE
) $*
133 pfb
: $(ec_pfb
) $(la_pfb
) $(math_pfb
) $(tc_pfb
)
135 ###############################################################################
137 ###############################################################################
146 $(RM
) $(TFMDIR
)/math
/*
150 $(RM
) $(PFBDIR
)/math
/*