OLD | NEW |
1 # mf/GNUmakefile | 1 # mf/GNUmakefile |
2 | 2 |
3 depth = .. | 3 depth = .. |
4 | 4 |
5 STEPMAKE_TEMPLATES = metafont \ | 5 STEPMAKE_TEMPLATES = metafont \ |
6 install \ | 6 install \ |
7 install-out | 7 install-out |
8 LOCALSTEPMAKE_TEMPLATES = lilypond | 8 LOCALSTEPMAKE_TEMPLATES = lilypond |
9 | 9 |
10 # These are the main .mf files. We don't use $(MF_FILES) here, | 10 # These are the main .mf files. We don't use $(MF_FILES) here, |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 LILYPOND_FONTS_CONF = $(outdir)/00-lilypond-fonts.conf \ | 41 LILYPOND_FONTS_CONF = $(outdir)/00-lilypond-fonts.conf \ |
42 $(outdir)/99-lilypond-fonts.conf | 42 $(outdir)/99-lilypond-fonts.conf |
43 | 43 |
44 LOG_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.log) | 44 LOG_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.log) |
45 LISP_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.lisp) | 45 LISP_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.lisp) |
46 ENC_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.enc) | 46 ENC_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.enc) |
47 TFM_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.tfm) | 47 TFM_FILES = $(FETA_MF_FILES:%.mf=$(outdir)/%.tfm) |
48 | 48 |
49 $(outdir)/emmentaler-brace.otf-gtable: $(BRACES:%=$(outdir)/feta-braces-%.otf-gt
able) | 49 $(outdir)/emmentaler-brace.otf-gtable: $(BRACES:%=$(outdir)/feta-braces-%.otf-gt
able) |
| 50 $(call ly_progress,Making,$@,) |
50 echo '(design_size . 20)' > $@ | 51 echo '(design_size . 20)' > $@ |
51 | 52 |
52 $(outdir)/feta%.otf-table: $(outdir)/feta%.lisp $(outdir)/parmesan%.lisp \ | 53 $(outdir)/feta%.otf-table: $(outdir)/feta%.lisp $(outdir)/parmesan%.lisp \ |
53 $(outdir)/parmesan-noteheads%.lisp \ | 54 $(outdir)/parmesan-noteheads%.lisp \ |
54 $(outdir)/feta-noteheads%.lisp \ | 55 $(outdir)/feta-noteheads%.lisp \ |
55 $(outdir)/feta-flags%.lisp \ | 56 $(outdir)/feta-flags%.lisp \ |
56 $(outdir)/feta-alphabet%.lisp | 57 $(outdir)/feta-alphabet%.lisp |
| 58 $(call ly_progress,Making,$@,< lisp) |
57 cat $^ > $@ | 59 cat $^ > $@ |
58 | 60 |
59 $(outdir)/emmentaler-brace.otf-table: $(foreach x, a b c d e f g h i,$(outdir)/f
eta-braces-$(x).lisp) | 61 $(outdir)/emmentaler-brace.otf-table: $(foreach x, a b c d e f g h i,$(outdir)/f
eta-braces-$(x).lisp) |
| 62 $(call ly_progress,Making,$@,< lisp) |
60 cat $^ > $@ | 63 cat $^ > $@ |
61 | 64 |
62 $(outdir)/emmentaler-brace.otf: $(outdir)/emmentaler-brace.subfonts \ | 65 $(outdir)/emmentaler-brace.otf: $(outdir)/emmentaler-brace.subfonts \ |
63 $(outdir)/emmentaler-brace.fontname \ | 66 $(outdir)/emmentaler-brace.fontname \ |
64 $(outdir)/emmentaler-brace.otf-table \ | 67 $(outdir)/emmentaler-brace.otf-table \ |
65 $(outdir)/emmentaler-brace.otf-gtable \ | 68 $(outdir)/emmentaler-brace.otf-gtable \ |
66 $(outdir)/emmentaler-brace.pe | 69 $(outdir)/emmentaler-brace.pe |
67 | 70 |
68 $(outdir)/emmentaler-brace.fontname: | 71 $(outdir)/emmentaler-brace.fontname: |
| 72 $(call ly_progress,Making,$@,) |
69 printf 'emmentaler-brace' > $@ | 73 printf 'emmentaler-brace' > $@ |
| 74 |
70 $(outdir)/emmentaler-brace.subfonts: | 75 $(outdir)/emmentaler-brace.subfonts: |
| 76 $(call ly_progress,Making,$@,) |
71 echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@ | 77 echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@ |
72 | 78 |
73 $(outdir)/emmentaler-%.genpe: $(buildscript-dir)/gen-emmentaler-scripts | 79 $(outdir)/emmentaler-%.genpe: $(buildscript-dir)/gen-emmentaler-scripts |
| 80 $(call ly_progress,Making,$@,) |
74 $< --dir=$(outdir) --design-size=$(patsubst emmentaler-%.genpe,%,$(notdi
r $@)) | 81 $< --dir=$(outdir) --design-size=$(patsubst emmentaler-%.genpe,%,$(notdi
r $@)) |
75 | 82 |
76 ALL_GEN_FILES = $(ENC_FILES) \ | 83 ALL_GEN_FILES = $(ENC_FILES) \ |
77 $(OTF_FILES) \ | 84 $(OTF_FILES) \ |
78 $(SVG_FILES) \ | 85 $(SVG_FILES) \ |
79 $(WOFF_FILES) \ | 86 $(WOFF_FILES) \ |
80 $(LILYPOND_FONTS_CONF) | 87 $(LILYPOND_FONTS_CONF) |
81 | 88 |
82 # PRE_INSTALL=$(MAKE) "$(ALL_GEN_FILES)" | 89 # PRE_INSTALL=$(MAKE) "$(ALL_GEN_FILES)" |
83 | 90 |
(...skipping 22 matching lines...) Expand all Loading... |
106 # not confuse make. | 113 # not confuse make. |
107 UPDATE_TARGET = if test -f $@; then touch $@ ; fi | 114 UPDATE_TARGET = if test -f $@; then touch $@ ; fi |
108 | 115 |
109 # only for fonts which | 116 # only for fonts which |
110 # | 117 # |
111 # 1. are mentioned in font.scm | 118 # 1. are mentioned in font.scm |
112 # | 119 # |
113 # 2. are not included with teTeX | 120 # 2. are not included with teTeX |
114 # | 121 # |
115 $(outdir)/%.lisp: $(outdir)/%.log $(outdir)/%.tfm | 122 $(outdir)/%.lisp: $(outdir)/%.log $(outdir)/%.tfm |
| 123 $(call ly_progress,Making,$@,< log) |
116 $(buildscript-dir)/mf-to-table \ | 124 $(buildscript-dir)/mf-to-table \ |
117 --global-lisp=$(outdir)/$(<F:.log=.otf-gtable) \ | 125 --global-lisp=$(outdir)/$(<F:.log=.otf-gtable) \ |
118 --lisp=$(outdir)/$(<F:.log=.lisp) \ | 126 --lisp=$(outdir)/$(<F:.log=.lisp) \ |
119 --outdir=$(outdir) \ | 127 --outdir=$(outdir) \ |
120 --enc $(outdir)/$(<F:.log=.enc) \ | 128 --enc $(outdir)/$(<F:.log=.enc) \ |
121 $< | 129 $< |
122 | 130 |
123 $(outdir)/%.otf-gtable $(outdir)/%.enc: $(outdir)/%.lisp | 131 $(outdir)/%.otf-gtable $(outdir)/%.enc: $(outdir)/%.lisp |
124 $(UPDATE_TARGET) | 132 $(UPDATE_TARGET) |
125 | 133 |
126 ## Putting pfb here forces all .pfb fonts to be built before | 134 ## Putting pfb here forces all .pfb fonts to be built before |
127 # fontforge starts generating emmentaler-*.* fonts. | 135 # fontforge starts generating emmentaler-*.* fonts. |
128 $(outdir)/emmentaler-%.otf: $(outdir)/emmentaler-%.genpe \ | 136 $(outdir)/emmentaler-%.otf: $(outdir)/emmentaler-%.genpe \ |
129 $(outdir)/feta%.pfb \ | 137 $(outdir)/feta%.pfb \ |
130 $(outdir)/feta-noteheads%.pfb \ | 138 $(outdir)/feta-noteheads%.pfb \ |
131 $(outdir)/feta-flags%.pfb \ | 139 $(outdir)/feta-flags%.pfb \ |
132 $(outdir)/feta-alphabet%.pfb \ | 140 $(outdir)/feta-alphabet%.pfb \ |
133 $(outdir)/parmesan%.pfb \ | 141 $(outdir)/parmesan%.pfb \ |
134 $(outdir)/parmesan-noteheads%.pfb \ | 142 $(outdir)/parmesan-noteheads%.pfb \ |
135 $(outdir)/feta%.otf-table \ | 143 $(outdir)/feta%.otf-table \ |
136 $(outdir)/feta%.otf-gtable \ | 144 $(outdir)/feta%.otf-gtable \ |
137 | pfb | 145 | pfb |
| 146 $(call ly_progress,Making,$@,) |
138 cd $(outdir) && $(FONTFORGE) -script $(notdir $<) | 147 cd $(outdir) && $(FONTFORGE) -script $(notdir $<) |
139 | 148 |
140 $(outdir)/emmentaler-%.svg $(outdir)/emmentaler-%.woff: $(outdir)/emmentaler-%.o
tf | 149 $(outdir)/emmentaler-%.svg $(outdir)/emmentaler-%.woff: $(outdir)/emmentaler-%.o
tf |
141 $(UPDATE_TARGET) | 150 $(UPDATE_TARGET) |
142 | 151 |
143 $(outdir)/emmentaler-brace.otf: $(outdir)/emmentaler-brace.pe\ | 152 $(outdir)/emmentaler-brace.otf: $(outdir)/emmentaler-brace.pe\ |
144 $(foreach s,$(BRACES),$(outdir)/feta-braces-$(s).pfb) \ | 153 $(foreach s,$(BRACES),$(outdir)/feta-braces-$(s).pfb) \ |
145 $(outdir)/emmentaler-brace.otf-table $(outdir)/emmentaler
-brace.otf-gtable \ | 154 $(outdir)/emmentaler-brace.otf-table $(outdir)/emmentaler
-brace.otf-gtable \ |
146 | pfb | 155 | pfb |
| 156 $(call ly_progress,Making,$@,) |
147 cd $(outdir) && $(FONTFORGE) -script emmentaler-brace.pe | 157 cd $(outdir) && $(FONTFORGE) -script emmentaler-brace.pe |
148 | 158 |
149 $(outdir)/emmentaler-brace.svg $(outdir)/emmentaler-brace.woff: $(outdir)/emment
aler-brace.otf | 159 $(outdir)/emmentaler-brace.svg $(outdir)/emmentaler-brace.woff: $(outdir)/emment
aler-brace.otf |
150 $(UPDATE_TARGET) | 160 $(UPDATE_TARGET) |
151 | 161 |
152 default: tree-regen \ | 162 default: tree-regen \ |
153 $(outdir)/fonts.conf | 163 $(outdir)/fonts.conf |
154 | 164 |
155 .PHONY: tree-regen | 165 .PHONY: tree-regen |
156 | 166 |
157 tree-regen: $(ALL_GEN_FILES) | 167 tree-regen: $(ALL_GEN_FILES) |
158 ${MAKE} -C $(top-build-dir) link-mf-tree | 168 ${MAKE} -C $(top-build-dir) link-mf-tree |
159 | 169 |
160 | 170 |
161 local-clean: | 171 local-clean: |
162 rm -f mfplain.mem mfplain.log | 172 rm -f mfplain.mem mfplain.log |
163 rm -f *.tfm *.log | 173 rm -f *.tfm *.log |
164 | 174 |
165 | 175 |
166 $(outdir)/fonts.conf: | 176 $(outdir)/fonts.conf: |
| 177 $(call ly_progress,Making,$@,) |
167 echo '<fontconfig><dir>'$(shell cd $(outdir); pwd)'</dir></fontconfig>'
> $@ | 178 echo '<fontconfig><dir>'$(shell cd $(outdir); pwd)'</dir></fontconfig>'
> $@ |
OLD | NEW |