Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(818)

Delta Between Two Patch Sets: mf/GNUmakefile

Issue 553700043: scripts/build/scan-mf-deps: script to generate MF dependencies (Closed)
Left Patch Set: touch multiple files Created 4 years ago
Right Patch Set: Jonas' nits Created 4 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | mf/invoke-mf2pt1.sh » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # mf/GNUmakefile 1 # mf/GNUmakefile
2 2
3 depth = .. 3 depth = ..
4 4
5 STEPMAKE_TEMPLATES = install install-out 5 STEPMAKE_TEMPLATES = install install-out
6 LOCALSTEPMAKE_TEMPLATES = lilypond 6 LOCALSTEPMAKE_TEMPLATES = lilypond
7 7
8 # These are the main .mf files. We don't use $(MF_FILES) here, 8 # These are the main .mf files. We don't use $(MF_FILES) here,
9 # because there are more .mf files, input'ed into the main files. 9 # because there are more .mf files, input'ed into the main files.
10 FETA_MF_FILES = $(call src-wildcard,feta[0-9]*.mf) \ 10 FETA_MF_FILES = $(call src-wildcard,feta[0-9]*.mf) \
(...skipping 14 matching lines...) Expand all
25 # TODO: use the dependency scanning from invoke-mf2pt1.sh here too. 25 # TODO: use the dependency scanning from invoke-mf2pt1.sh here too.
26 $(outdir)/%.dvi: %.mf 26 $(outdir)/%.dvi: %.mf
27 $(call ly_progress,Making,$@,< mf) 27 $(call ly_progress,Making,$@,< mf)
28 MFINPUTS=$(src-dir) \ 28 MFINPUTS=$(src-dir) \
29 max_print_line=1000 \ 29 max_print_line=1000 \
30 $(METAFONT) "\scrollmode; input $<;" $(METAFONT_QUIET) 30 $(METAFONT) "\scrollmode; input $<;" $(METAFONT_QUIET)
31 gftodvi $(basename $<) 31 gftodvi $(basename $<)
32 mv $(basename $<).dvi $(outdir) 32 mv $(basename $<).dvi $(outdir)
33 rm $(basename $<).*gf 33 rm $(basename $<).*gf
34 34
35 $(outdir)/%.pfb: %.mf $(outdir)/mf2pt1.mem invoke-mf2pt1.sh 35 $(outdir)/%.tfm $(outdir)/%.log $(outdir)/%.pfb: %.mf $(outdir)/mf2pt1.mem invok e-mf2pt1.sh
36 » $(call ly_progress,Making,$@,< mf) 36 » $(call ly_progress,Making,$(outdir)/$*.pfb,< mf)
37 » $(src-dir)/invoke-mf2pt1.sh $(buildscript-dir)/mf2pt1 $< $@ $(METAFONT_Q UIET) 37 » $(src-dir)/invoke-mf2pt1.sh $(buildscript-dir)/mf2pt1 $< $(outdir)/$*.pf b $(METAFONT_QUIET)
38
39 $(outdir)/%.tfm $(outdir)/%.log: $(outdir)/%.pfb
hahnjo 2020/03/18 13:27:51 This doesn't work for me: After a 'make clean' / d
40 38
41 # since recent mpost versions no longer create a mem file, we create a dummy 39 # since recent mpost versions no longer create a mem file, we create a dummy
42 # file to satisfy the dependency (which gets overwritten in case an older 40 # file to satisfy the dependency (which gets overwritten in case an older
43 # mpost creates a real mem file) 41 # mpost creates a real mem file)
44 $(outdir)/mf2pt1.mem: mf2pt1.mp 42 $(outdir)/mf2pt1.mem: mf2pt1.mp
45 $(call ly_progress,Making,$@,< mp) 43 $(call ly_progress,Making,$@,< mp)
46 cd $(outdir) \ 44 cd $(outdir) \
47 && touch mf2pt1.mem \ 45 && touch mf2pt1.mem \
48 && mpost -progname=mpost -ini $(top-src-dir)/mf/mf2pt1.mp \\dump $(ME TAFONT_QUIET) 46 && mpost -progname=mpost -ini $(top-src-dir)/mf/mf2pt1.mp \\dump $(ME TAFONT_QUIET)
49 47
50 ifndef VERBOSE 48 ifndef VERBOSE
51 METAFONT_QUIET = >/dev/null 49 METAFONT_QUIET = >/dev/null
52 else 50 else
53 METAFONT_QUIET = 51 METAFONT_QUIET =
54 endif 52 endif
55 53
56 $(outdir)/emmentaler-brace.subfonts: 54 $(outdir)/emmentaler-brace.subfonts:
57 $(call ly_progress,Making,$@,) 55 $(call ly_progress,Making,$@,)
58 echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@ 56 echo $(subst .mf,,$(call src-wildcard,feta-braces-[a-z].mf)) > $@
59 57
60 $(outdir)/emmentaler-%.genpe: $(buildscript-dir)/gen-emmentaler-scripts 58 $(outdir)/emmentaler-%.genpe: $(buildscript-dir)/gen-emmentaler-scripts
61 $(call ly_progress,Making,$@,) 59 $(call ly_progress,Making,$@,)
62 $< --dir=$(outdir) --design-size=$(patsubst emmentaler-%.genpe,%,$(notdi r $@)) 60 $< --dir=$(outdir) --design-size=$(patsubst emmentaler-%.genpe,%,$(notdi r $@))
63 61
64 62
65 EXTRA_DIST_FILES += README mf2pt1.mp invoke-mf2pt.sh r 63 EXTRA_DIST_FILES += README mf2pt1.mp invoke-mf2pt.sh
66 64
67 STAFF_SIZES = 11 13 14 16 18 20 23 26 65 STAFF_SIZES = 11 13 14 16 18 20 23 26
68 BRACES = a b c d e f g h i 66 BRACES = a b c d e f g h i
69 67
70 OTF_FILES = $(STAFF_SIZES:%=$(outdir)/emmentaler-%.otf) \ 68 OTF_FILES = $(STAFF_SIZES:%=$(outdir)/emmentaler-%.otf) \
71 $(outdir)/emmentaler-brace.otf 69 $(outdir)/emmentaler-brace.otf
72 SVG_FILES = $(OTF_FILES:%.otf=%.svg) 70 SVG_FILES = $(OTF_FILES:%.otf=%.svg)
73 WOFF_FILES = $(OTF_FILES:%.otf=%.woff) 71 WOFF_FILES = $(OTF_FILES:%.otf=%.woff)
74 72
75 TEXGYRE_OTFS = $(addprefix $(TEXGYRE_DIR)/,$(TEXGYRE_FILES)) 73 TEXGYRE_OTFS = $(addprefix $(TEXGYRE_DIR)/,$(TEXGYRE_FILES))
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 $(outdir)/feta-noteheads%.lisp \ 107 $(outdir)/feta-noteheads%.lisp \
110 $(outdir)/feta-flags%.lisp \ 108 $(outdir)/feta-flags%.lisp \
111 $(outdir)/feta-alphabet%.lisp 109 $(outdir)/feta-alphabet%.lisp
112 $(call ly_progress,Making,$@,< lisp) 110 $(call ly_progress,Making,$@,< lisp)
113 cat $^ > $@ 111 cat $^ > $@
114 112
115 $(outdir)/emmentaler-brace.otf-table: $(foreach x, a b c d e f g h i,$(outdir)/f eta-braces-$(x).lisp) 113 $(outdir)/emmentaler-brace.otf-table: $(foreach x, a b c d e f g h i,$(outdir)/f eta-braces-$(x).lisp)
116 $(call ly_progress,Making,$@,< lisp) 114 $(call ly_progress,Making,$@,< lisp)
117 cat $^ > $@ 115 cat $^ > $@
118 116
119 # A few rules here generate multiple files from one command line. For
120 # treating this case, we only declare one output explicitly, and use a
121 # dummy rules for the other outputs. The rules that create multiple
122 # files should touch all the outputs to ensure consistent timestamps.
123
124 # only for fonts which 117 # only for fonts which
125 # 118 #
126 # 1. are mentioned in font.scm 119 # 1. are mentioned in font.scm
127 # 120 #
128 # 2. are not included with teTeX 121 # 2. are not included with teTeX
129 # 122 #
130 $(outdir)/%.lisp: $(outdir)/%.log $(outdir)/%.tfm 123 $(outdir)/%.otf-gtable $(outdir)/%.enc $(outdir)/%.lisp: $(outdir)/%.log $(outdi r)/%.tfm
131 » $(call ly_progress,Making,$@,< log) 124 » $(call ly_progress,Making,$(outdir)/$*.lisp,< log)
132 $(buildscript-dir)/mf-to-table \ 125 $(buildscript-dir)/mf-to-table \
133 --global-lisp=$(outdir)/$(<F:.log=.otf-gtable) \ 126 --global-lisp=$(outdir)/$(<F:.log=.otf-gtable) \
134 --lisp=$(outdir)/$(<F:.log=.lisp) \ 127 --lisp=$(outdir)/$(<F:.log=.lisp) \
135 --outdir=$(outdir) \ 128 --outdir=$(outdir) \
136 --enc $(outdir)/$(<F:.log=.enc) \ 129 --enc $(outdir)/$(<F:.log=.enc) \
137 $< 130 $<
138 touch $(outdir)/$(<F:.log=.otf-gtable) \
139 $(outdir)/$(<F:.log=.lisp) \
140 $(outdir)/$(<F:.log=.enc)
141 131
142 $(outdir)/%.otf-gtable $(outdir)/%.enc: $(outdir)/%.lisp 132 $(outdir)/emmentaler-%.svg $(outdir)/emmentaler-%.woff $(outdir)/emmentaler-%.ot f: $(outdir)/emmentaler-%.genpe \
143
144 $(outdir)/emmentaler-%.otf: $(outdir)/emmentaler-%.genpe \
145 $(outdir)/feta%.pfb \ 133 $(outdir)/feta%.pfb \
146 $(outdir)/feta-noteheads%.pfb \ 134 $(outdir)/feta-noteheads%.pfb \
147 $(outdir)/feta-flags%.pfb \ 135 $(outdir)/feta-flags%.pfb \
148 $(outdir)/feta-alphabet%.pfb \ 136 $(outdir)/feta-alphabet%.pfb \
149 $(outdir)/parmesan%.pfb \ 137 $(outdir)/parmesan%.pfb \
150 $(outdir)/parmesan-noteheads%.pfb \ 138 $(outdir)/parmesan-noteheads%.pfb \
151 $(outdir)/feta%.otf-table \ 139 $(outdir)/feta%.otf-table \
152 $(outdir)/feta%.otf-gtable 140 $(outdir)/feta%.otf-gtable
153 » $(call ly_progress,Making,$@,) 141 » $(call ly_progress,Making,$(outdir)/emmentaler-$*.otf,)
154 cd $(outdir) && $(FONTFORGE) -script $(notdir $<) 142 cd $(outdir) && $(FONTFORGE) -script $(notdir $<)
155 touch $(outdir)/emmentaler-%.svg $(outdir)/emmentaler-%.woff $(outdir)/e mmentaler-%.otf
156 143
157 $(outdir)/emmentaler-%.svg $(outdir)/emmentaler-%.woff: $(outdir)/emmentaler-%.o tf 144 $(outdir)/emmentaler-brace.svg $(outdir)/emmentaler-brace.woff $(outdir)/emmenta ler-brace.otf: $(outdir)/emmentaler-brace.pe\
158
159 $(outdir)/emmentaler-brace.otf: $(outdir)/emmentaler-brace.pe\
160 $(foreach s,$(BRACES),$(outdir)/feta-braces-$(s).pfb) \ 145 $(foreach s,$(BRACES),$(outdir)/feta-braces-$(s).pfb) \
161 $(outdir)/emmentaler-brace.otf-table \ 146 $(outdir)/emmentaler-brace.otf-table \
162 $(outdir)/emmentaler-brace.otf-gtable \ 147 $(outdir)/emmentaler-brace.otf-gtable \
163 $(outdir)/emmentaler-brace.subfonts 148 $(outdir)/emmentaler-brace.subfonts
164 » $(call ly_progress,Making,$@,) 149 » $(call ly_progress,Making,$(outdir)/emmentaler-brace.otf,)
165 cd $(outdir) && $(FONTFORGE) -script emmentaler-brace.pe 150 cd $(outdir) && $(FONTFORGE) -script emmentaler-brace.pe
166 touch $(outdir)/emmentaler-brace.svg $(outdir)/emmentaler-brace.woff $(o utdir)/emmentaler-brace.otf
167
168 $(outdir)/emmentaler-brace.svg $(outdir)/emmentaler-brace.woff: $(outdir)/emment aler-brace.otf
169 151
170 default: tree-regen \ 152 default: tree-regen \
171 $(outdir)/fonts.conf 153 $(outdir)/fonts.conf
172 154
173 .PHONY: tree-regen 155 .PHONY: tree-regen
174 156
175 tree-regen: $(ALL_GEN_FILES) 157 tree-regen: $(ALL_GEN_FILES)
176 ${MAKE} -C $(top-build-dir) link-mf-tree 158 ${MAKE} -C $(top-build-dir) link-mf-tree
177 159
178 $(outdir)/fonts.conf: 160 $(outdir)/fonts.conf:
179 $(call ly_progress,Making,$@,) 161 $(call ly_progress,Making,$@,)
180 echo '<fontconfig><dir>'$(shell cd $(outdir); pwd)'</dir></fontconfig>' > $@ 162 echo '<fontconfig><dir>'$(shell cd $(outdir); pwd)'</dir></fontconfig>' > $@
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b