]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/mutopia-rules.make
* stepmake/stepmake/*:
[lilypond.git] / make / mutopia-rules.make
index 8c51c6f19778ba47c616e52d3aba7a0c5f8fb407..934b9464e09d1083853a44e725ca40681504f2ef 100644 (file)
@@ -1,11 +1,5 @@
 
 
-$(outdir)/%.png: $(outdir)/%.ps
-       gs -sDEVICE=pnggray -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile="$(name-stem)-page%d.png" -r90 -dNOPAUSE $< -c quit
-       -mv $(name-stem)-page*.png $(outdir)/
-       rm -f $@
-       ln -s $(name-stem)-page1.png $@
-
 $(outdir)/%.ly.txt: %.ly
        ln -f $< $@
 
@@ -19,13 +13,12 @@ $(outdir)/%.ly.txt: %.abc
 $(outdir)/%.ly: %.abc
        $(PYTHON) $(ABC2LY) --strict -o $@ $< 
 
-$(outdir)/%.ps: $(outdir)/%.ly
-       $(PYTHON) $(LY2DVI) --output=$@ $<  
-
-$(outdir)/%.ps: %.ly
-       $(PYTHON) $(LY2DVI) --output=$@ $<  
+# hmm. notdir builds src-dir builds? 
+$(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
+       cd $(outdir); $(LILYPOND) --pdf --png -danti-alias-factor=2 -ddelete-intermediate-files -dno-point-and-click -I $(shell pwd)/ $(notdir $<)
+       touch $(outdir)/$(basename $(notdir $<)).png
 
-$(outdir)/%.pdf: $(outdir)/%.ps
-       ps2pdf -sPAPERSIZE=a4 $< $@
+$(outdir)/%.ly: %.ly
+       cp $< $@