]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/mutopia-rules.make
* Documentation/topdocs/NEWS.texi: Add note about info docs with
[lilypond.git] / make / mutopia-rules.make
index 08445758d53908ab05bf49f719dbfbd38ea3c5e9..af73902b9719b4b0042c182038be6465894e9b4f 100644 (file)
@@ -1,13 +1,9 @@
 
 
-$(outdir)/%.gif: $(outdir)/%.ps
-       sh $(PS_TO_GIFS) $<
-       -mv $(name-stem)-page*.gif $(outdir)/
-       ln -s $(name-stem)-page1.gif $@
-
 $(outdir)/%.png: $(outdir)/%.ps
-       sh $(PS_TO_PNGS) $<
+       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
@@ -33,6 +29,11 @@ $(outdir)/%.dvi: $(outdir)/%.ly
 $(outdir)/%.dvi: %.ly
        $(PYTHON) $(LY2DVI) --output=$@ --dependencies $< 
 
+
+$(outdir)/%.pdf: $(outdir)/%.dvi
+       dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) -o $@.pdfps $<
+       ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
+
 $(outdir)-$(PAPERSIZE)/%.dvi: %.ly
        $(PYTHON) $(LY2DVI) --output=$@ --dependencies --set=papersize=$(PAPERSIZE) $<