2 ###############################################################################
3 # MODULE : Makefile for essential TeXmacs fonts (not in Bluesky)
4 # BY : Joris van der Hoeven
5 # COPYRIGHT : This software falls under the GNU general public license;
6 # see the file 'LICENSE', which is provided with this package.
7 ###############################################################################
9 MFTRACE
= mftrace
--autotrace
--formats
=pfb
11 PFBDIR
= $(PWD
)/TeXmacs
/fonts
/type1
12 TFMDIR
= $(PWD
)/TeXmacs
/fonts
/tfm
22 $(MKDIR
) TeXmacs
/fonts
26 $(MKDIR
) $(TFMDIR
)/math
30 $(MKDIR
) $(PFBDIR
)/math
32 ###############################################################################
33 # Building the tfm files
34 ###############################################################################
36 ec_root
= ecrm ecsl ecti eccc ecbx ecxc ectt ecss
40 $(patsubst %,%5$(2),$(1)) $(patsubst %,%6$(2),$(1)) \
41 $(patsubst %,%7$(2),$(1)) $(patsubst %,%8$(2),$(1)) \
42 $(patsubst %,%9$(2),$(1)) $(patsubst %,%10$(2),$(1)) \
43 $(patsubst %,%11$(2),$(1)) $(patsubst %,%12$(2),$(1)) \
44 $(patsubst %,%14$(2),$(1)) $(patsubst %,%17$(2),$(1)) \
45 $(patsubst %,%20$(2),$(1)) $(patsubst %,%24$(2),$(1))
46 ec_series
:= $(call find_series
,$(ec_root
),)
47 la_series
:= $(call find_series
,$(la_root
),00)
48 math_series
:= $(call find_series
,$(math_root
),)
49 find_tfm
= $(patsubst %,$(TFMDIR
)/$(2)/%.tfm
,$(1))
50 ec_tfm
:= $(call find_tfm
,$(ec_series
),ec
)
51 la_tfm
:= $(call find_tfm
,$(la_series
),la
)
52 math_tfm
:= $(call find_tfm
,$(math_series
),math
)
54 $(ec_tfm
): $(TFMDIR
)/ec
/%.tfm
:
55 $(MKTEXTFM
) --destdir
$(TFMDIR
)/ec
$*
56 $(RM
) $(TFMDIR
)/ec
/$*.600pk
58 $(la_tfm
): $(TFMDIR
)/la
/%.tfm
:
59 $(MKTEXTFM
) --destdir
$(TFMDIR
)/la
$*
60 $(RM
) $(TFMDIR
)/la
/$*.600pk
62 $(math_tfm
): $(TFMDIR
)/math
/%.tfm
:
63 $(MKTEXTFM
) --destdir
$(TFMDIR
)/math
$*
64 $(RM
) $(TFMDIR
)/math
/$*.600pk
66 tfm
: $(ec_tfm
) $(la_tfm
) $(math_tfm
)
68 ###############################################################################
69 # Building the pfb files
70 ###############################################################################
72 ec_target
= ecrm10 ecsl10 ecti10 eccc10 ecbx10 ecxc10 ectt10 ecss10
76 find_pfb
= $(patsubst %,$(PFBDIR
)/$(2)/%.pfb
,$(1))
77 ec_pfb
:= $(call find_pfb
,$(ec_target
),ec
)
78 la_pfb
:= $(call find_pfb
,$(la_target
),la
)
79 math_pfb
:= $(call find_pfb
,$(math_target
),math
)
81 $(ec_pfb
): $(PFBDIR
)/ec
/%.pfb
:
82 $(CD
) $(PFBDIR
)/ec
; $(MFTRACE
) $*
84 $(la_pfb
): $(PFBDIR
)/la
/%.pfb
:
85 $(CD
) $(PFBDIR
)/la
; $(MFTRACE
) $*
87 $(math_pfb
): $(PFBDIR
)/math
/%.pfb
:
88 $(CD
) $(PFBDIR
)/math
; $(MFTRACE
) $*
90 pfb
: $(ec_pfb
) $(la_pfb
) $(math_pfb
)
92 ###############################################################################
94 ###############################################################################
103 $(RM
) $(TFMDIR
)/math
/*
106 $(RM
) $(PFBDIR
)/math
/*