]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/pictures/GNUmakefile
Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
[lilypond.git] / Documentation / pictures / GNUmakefile
index 131de3e32383b152b7a9fb22925544fc58f20153..8ae3e463bbe15e7aed5486ded25c7e5a2b2209bf 100644 (file)
@@ -19,7 +19,7 @@ include $(depth)/make/stepmake.make
 default:
 
 ifeq ($(out),www)
-local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES)
+local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) $(outdir)/pdf
 endif
 
 #########
@@ -38,8 +38,10 @@ $(outdir)/%.jpg: %.jpg
        ln -f $< $@
 
 $(outdir)/%.png: %.eps
-       gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit
+       gs -dAutoRotatePages=/None -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit
 
 $(outdir)/%.pdf: %.eps
        gs -dAutoRotatePages=/None -q -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $<
 
+$(outdir)/pdf:
+       ln -sf $(top-src-dir)/Documentation/pictures/pdf $@