Debugging stuff
[texmacs.git] / fonts / TeXmacs-essential-fonts-1.0 / Makefile
blob21a8d01e77f95e436692bf1dc2c683b6191c8358
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
10 MKTEXTFM = mktextfm
11 PFBDIR = $(PWD)/TeXmacs/fonts/type1
12 TFMDIR = $(PWD)/TeXmacs/fonts/tfm
13 MKDIR = mkdir -p
14 CD = cd
15 RM = rm -f
17 all: dirs tfm pfb
18 $(RM) *.log
20 dirs:
21 $(MKDIR) TeXmacs
22 $(MKDIR) TeXmacs/fonts
23 $(MKDIR) $(TFMDIR)
24 $(MKDIR) $(TFMDIR)/ec
25 $(MKDIR) $(TFMDIR)/la
26 $(MKDIR) $(TFMDIR)/math
27 $(MKDIR) $(PFBDIR)
28 $(MKDIR) $(PFBDIR)/ec
29 $(MKDIR) $(PFBDIR)/la
30 $(MKDIR) $(PFBDIR)/math
32 ###############################################################################
33 # Building the tfm files
34 ###############################################################################
36 ec_root = ecrm ecsl ecti eccc ecbx ecxc ectt ecss
37 la_root = larm
38 math_root = bbm
39 find_series = \
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
73 la_target = larm1000
74 math_target = bbm10
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 ###############################################################################
93 # Cleaning
94 ###############################################################################
96 clean:
97 $(RM) *~
98 $(RM) */*~
99 $(RM) */*/*~
100 $(RM) */*/*/*~
101 $(RM) $(TFMDIR)/ec/*
102 $(RM) $(TFMDIR)/la/*
103 $(RM) $(TFMDIR)/math/*
104 $(RM) $(PFBDIR)/ec/*
105 $(RM) $(PFBDIR)/la/*
106 $(RM) $(PFBDIR)/math/*