]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/metapost-rules.make
release: 1.3.76
[lilypond.git] / stepmake / stepmake / metapost-rules.make
index ef846f8a3c3df6cfdac2d1be33eb76d65f08e256..6e135ede159b64e20210a80e711fd5ba4a35e7d6 100644 (file)
@@ -1,14 +1,15 @@
 
-$(outdir)/%.0: %.mf mfplain.mem  
-       -$(METAPOST) "&mfplain \mode=lowres; \mag=1.0; nonstopmode; input $<"
+# Don't remove $(outdir)/.log's.  Logs are a target!
 
-MFPLAIN_MP=/usr/share/texmf/metapost/base/mfplain.mp
-mfplain.mem: $(MFPLAIN_MP)
-       $(INIMETAPOST) -interaction=nonstopmode $(MFPLAIN_MP) dump
+$(outdir)/%.0: %.mf $(outdir)/mfplain.mem  
+       -$(METAPOST) "&$(outdir)/mfplain \mode=lowres; \mag=1.0; nonstopmode; input $<"
 
+$(outdir)/mfplain.mem: $(MFPLAIN_MP)
+       $(INIMETAPOST)  $(INIMETAPOST_FLAGS) $(MFPLAIN_MP) dump
+       mv mfplain.* $(outdir)
 
 $(outdir)/%.pfa: $(outdir)/%.0
        $(PYTHON) $(depth)/buildscripts/ps-to-pfa.py --output $(basename $<).pfa $<
        rm -f $(basename $(@F)).[0-9]*
-       rm -f $(basename $<).log $(basename $<).tfm
+       rm -f $(basename $(@F)).tfm $(basename $(@F)).log