]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/mutopia-rules.make
* make/lilypond-vars.make: centralize LILYPOND_BOOK_FLAGS setting.
[lilypond.git] / make / mutopia-rules.make
index 8c51c6f19778ba47c616e52d3aba7a0c5f8fb407..a86e9c7e4229e9c98a266bc37a992059c20b5283 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,11 @@ $(outdir)/%.ly.txt: %.abc
 $(outdir)/%.ly: %.abc
        $(PYTHON) $(ABC2LY) --strict -o $@ $< 
 
-$(outdir)/%.ps: $(outdir)/%.ly
-       $(PYTHON) $(LY2DVI) --output=$@ $<  
-
-$(outdir)/%.ps: %.ly
-       $(PYTHON) $(LY2DVI) --output=$@ $<  
+$(outdir)/%.png $(outdir)/%.pdf $(outdir)/%.ly $(outdir)/%.ps: $(outdir)/%.ly
+# hmm. notdir builds srcdir builds? 
+       cd $(outdir); $(LILYPOND) --pdf --ps --png $(notdir $<)
 
-$(outdir)/%.pdf: $(outdir)/%.ps
-       ps2pdf -sPAPERSIZE=a4 $< $@
+$(outdir)/%.ly: %.ly
+       cp $< $@