Debian Codegraph @

texmf-dist/fonts/source/public/semaphor/Makefile

raw
1 # Semafor font (c) 1998-2008 Vit Zyka
2 # Generation: (with Metatype1)
3 # make (old_lig := true)
4 # make cp-tfm
5 # make (old_lig := false)
6 # make example
7 # make all-otf (on cygwin with FontForge)
8 # make cp
9
10 PILAR := smfr10 smfb10 smfsl10 smfbsl10 smftt10
11
12 EMPTY := smfer10 smfeb10 smfesl10 smfebsl10 smfett10
13
14 PERSON := smfpr10 smfpb10 smfpsl10 smfpbsl10 smfptt10
15
16 FONTS = $(PILAR) $(EMPTY) $(PERSON)
17
18 PFB_FONTS = $(addsuffix .pfb, $(FONTS))
19 AFM_FONTS = $(PFB_FONTS:.pfb=.afm)
20 OTF_FONTS = $(PFB_FONTS:.pfb=.otf)
21
22 RM_EXT := *.aux *.log *.bak *.clg *.cnt *.lo1 *.lo2
23 RM_ALL_EXT := $(RM_EXT) *.*~ *~ *.dvi *.pdf *.map *.enc *.pfb *.pfm *.afm *.tfm *.otf
24
25 all: $(PFB_FONTS)
26 cat *.map > semaf.map
27
28 all-otf: $(OTF_FONTS)
29
30 $(foreach a,$(join $(addsuffix :,$(FONTS)),$(PFB_FONTS)),$(eval $(a)))
31
32 .SUFFIXES: .mp .pfb .afm .otf
33 .PHONY: touch copy clean cleanall test example $(OTF_FONTS)
34
35 .SECONDEXPANSION:
36
37 $(PFB_FONTS): $$*.mp semaf.mp
38 mkfont1 $*
39
40 $(OTF_FONTS): #$$*.mp semaf.mp
41 fontforge -script pfb2otf.pe $*.pfb
42
43 TDS_BASE := ./texmf
44 CTAN_BASE := ./distr/semaf
45 CP_VENDOR := public/semaf
46
47 copy:
48 cp *.afm $(TDS_BASE)/fonts/afm/$(CP_VENDOR)
49 cp *.pfb *.pfm $(TDS_BASE)/fonts/type1/$(CP_VENDOR)
50 cp *.otf $(TDS_BASE)/fonts/opentype/$(CP_VENDOR)
51 cp *.mp Makefile README pfb2otf.pe $(TDS_BASE)/fonts/source/$(CP_VENDOR)
52 cp semaf.map $(TDS_BASE)/fonts/map/dvips
53 cp *.enc $(TDS_BASE)/fonts/enc/dvips
54 cp semaf.tex $(TDS_BASE)/tex/plain/semaf
55 cp *.fd $(TDS_BASE)/tex/latex/semaf
56 cp t-type-*.tex $(TDS_BASE)/tex/context/third/semaf
57 cp example.tex example.pdf $(TDS_BASE)/doc/fonts/$(CP_VENDOR)
58 cp test-context.tex test-context.pdf $(TDS_BASE)/doc/fonts/$(CP_VENDOR)
59 cp README $(TDS_BASE)/doc/fonts/$(CP_VENDOR)
60 #cp *.tfm $(TDS_BASE)/fonts/tfm/$(CP_VENDOR)
61 #cp *.tfm $(CTAN_BASE)/support/tfm
62 cp *.afm *.pfb *.pfm $(CTAN_BASE)/type1
63 cp *.otf $(CTAN_BASE)/opentype
64 cp README $(CTAN_BASE)
65 cp test-context.pdf $(CTAN_BASE)/test-semaf.pdf
66 cp *.mp Makefile pfb2otf.pe $(CTAN_BASE)/metatype1
67 cp semaf.map *.enc $(CTAN_BASE)/support
68 cp semaf.tex *.fd t-type-*.tex $(CTAN_BASE)/support
69 cp example.tex example.pdf $(CTAN_BASE)/doc
70 cp test-context.tex test-context.pdf $(CTAN_BASE)/doc
71
72 touch:
73 touch *.mp
74
75 test:
76 -pdfclose --file smf.pdf
77 pdftex smf.tex
78 -pdfopen --file smf.pdf
79
80 example:
81 -pdfclose --file example.pdf
82 pdftex example.tex
83 -pdfopen --file example.pdf
84
85 context:
86 texmfstart texexec test-context
87
88 RM = rm -f
89
90 clean:
91 $(RM) $(wildcard $(RM_EXT))
92
93 clean-all:
94 $(RM) $(wildcard $(RM_ALL_EXT))