From: hanwen Date: Sun, 19 Dec 2004 14:03:25 +0000 (+0000) Subject: * stepmake/stepmake/metafont-rules.make: make single SVG/PFA/PFB X-Git-Tag: release/2.5.23~797 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0b4a654609a32a9c01df1f059d58896126ccacb6;p=lilypond.git * stepmake/stepmake/metafont-rules.make: make single SVG/PFA/PFB rule. * configure.in (gui_b): bump mftrace requirement to 1.1.0 * mf/GNUmakefile (ALL_GEN_FILES): make SVG files too. --- diff --git a/ChangeLog b/ChangeLog index e7ff3e633a..12413404f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-12-19 Han-Wen Nienhuys + * stepmake/stepmake/metafont-rules.make: make single SVG/PFA/PFB + rule. + + * configure.in (gui_b): bump mftrace requirement to 1.1.0 + * mf/feta-bolletjes.mf (triangle): add s to 0triangle. * mf/GNUmakefile (ALL_GEN_FILES): make SVG files too. diff --git a/configure.in b/configure.in index 68b3aca31d..d9f0050f62 100644 --- a/configure.in +++ b/configure.in @@ -52,7 +52,7 @@ STEPMAKE_MAKEINFO(REQUIRED) STEPMAKE_PYTHON_DEVEL(REQUIRED) # mftrace for generating pfa's, pfb's -STEPMAKE_PROGS(MFTRACE, mftrace, REQUIRED, 1.0.27) +STEPMAKE_PROGS(MFTRACE, mftrace, REQUIRED, 1.1.0) # mftrace for generating pfa's, pfb's STEPMAKE_PATH_PROG(FONTFORGE, fontforge, REQUIRED, 20041208) diff --git a/mf/GNUmakefile b/mf/GNUmakefile index d198342b5a..6d7fc92e4c 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -24,7 +24,8 @@ PE_SCRIPTS = $(addsuffix .pe, $(addprefix $(outdir)/bigcheese, $(STAFF_SIZES))) OTF_TABLES = $(addsuffix .otf-table, $(addprefix $(outdir)/feta, $(STAFF_SIZES))) \ $(BRACES:%=$(outdir)/feta-braces-%.otf-table) FETA_FONTS = $(FETA_MF_FILES:.mf=) -SVG_FILES = $(OTF_FILES:%.otf=%.svg) +SVG_FILES = $(OTF_FILES:%.otf=%.svg) $(ALL_FONTS:%=$(outdir)/%.svg) + $(outdir)/aybabtu.otf-table: $(BRACES:%=$(outdir)/feta-braces-%.otf-table) cat $^ > $@ @@ -66,15 +67,14 @@ $(outdir)/aybabtu.otf: $(outdir)/aybabtu.subfonts $(outdir)/aybabtu.otf-table $( $(outdir)/aybabtu.subfonts: echo $(subst .mf,,$(wildcard feta-braces-[a-z].mf)) > $@ -$(PE_SCRIPTS): - $(PYTHON) $(buildscript-dir)/gen-bigcheese-scripts.py --dir=$(outdir) +$(PE_SCRIPTS): $(buildscript-dir)/gen-bigcheese-scripts.py + $(PYTHON) $< --dir=$(outdir) include $(outdir)/bigcheese20.dep ALL_FONTS = $(FETA_FONTS) $(SAUTER_FONTS) PFA_FILES = $(ALL_FONTS:%=$(outdir)/%.pfa) -PFB_FILES = $(PFA_FILES:%.pfa=%.pfb) # Make tfm files first, log files last, # so that normally log files aren't made twice @@ -209,17 +209,17 @@ local-clean: rm -f mfplain.mem mfplain.log rm -f *.tfm *.log -afm: $(AFM_FILES) -pfa: afm $(PFA_FILES) fontdir -pfb: afm $(PFB_FILES) fontdir - - -# stupid trick to have separate rules for each PFA font ; -# otherwise building PFAs is all-or-nothing. - - -$(outdir)/%.pfa: $(outdir)/%.bla - $(MFTRACE) -I $(outdir)/ --pfa --simplify --keep-trying $(notdir $(basename $@)) && mv $(notdir $@) $(outdir)/ +#afm: $(AFM_FILES) +#pfa: afm $(PFA_FILES) fontdir +#pfb: afm $(PFB_FILES) fontdir +# +# +## stupid trick to have separate rules for each PFA font ; +## otherwise building PFAs is all-or-nothing. +# +# +#$(outdir)/%.pfa $(outdir)/%.svg: $(outdir)/%.bla +# $(MFTRACE) -I $(outdir)/ --formats=pfa,svg --simplify --keep-trying $(notdir $(basename $@)) && mv $(notdir $@) $(outdir)/ $(outdir)/%.enc.in: %.enc cp $< $@ diff --git a/stepmake/stepmake/metafont-rules.make b/stepmake/stepmake/metafont-rules.make index fb2e6d4428..4741dcc0af 100644 --- a/stepmake/stepmake/metafont-rules.make +++ b/stepmake/stepmake/metafont-rules.make @@ -29,15 +29,9 @@ $(outdir)/%.$(XPM_RESOLUTION)pk: $(outdir)/%.$(XPM_RESOLUTION)gf gftopk $< $@ -$(outdir)/%.pfa: %.mf - $(MFTRACE) $(MFTRACE_FLAGS) -I $(outdir)/ --pfa --simplify $(basename $(@F)) +$(outdir)/%.pfb $(outdir)/%.svg $(outdir)/%.pfa: %.mf + $(MFTRACE) $(MFTRACE_FLAGS) -I $(outdir)/ --formats=pfa,pfb,svg --simplify $(basename $(@F)) mv $(basename $(@F)).pfa $(outdir) - -$(outdir)/%.pfb: %.mf - $(MFTRACE) $(MFTRACE_FLAGS) -I $(outdir)/ --pfa --pfb --simplify $(basename $(@F)) - -mv $(basename $(@F)).pfa $(outdir) - mv $(basename $(@F)).pfb $(outdir) - #%.afm: # $(SHELL) $(depth)/buildscripts/tfmtoafm.sh $(shell basename $@ .afm) # mv $@ $@.in