]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
* stepmake/stepmake/tex-rules.make ($(outdir)/%.pdf): make PDF
[lilypond.git] / stepmake / stepmake / tex-rules.make
index e4fa7b301eaea9d947564298a01c8eadcbe08df3..f977ea8a7596632df3ee71b3e32a6871e5d192e0 100644 (file)
@@ -13,10 +13,11 @@ $(outdir)/%.dvi: $(outdir)/%.latex
          (makeindex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F) )
 
+$(outdir)/%.pdf: $(outdir)/%.dvi
+       cd $(outdir) && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) -o $(@F).pdfps $(<F)
+       cd $(outdir) \
+        && gs -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$(@F) -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -c .setpdfwrite -f $(@F).pdfps
+# without -dSAFER
+# gs 8.15 complains of safety of loading a ttf directly 
 
-$(outdir)/%.ps: $(outdir)/%.dvi
-       cd $(outdir) && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) -o $(@F) $(<F)
-
-$(outdir)-$(PAPERSIZE)/%.ps: $(outdir)-$(PAPERSIZE)/%.dvi
-       cd $(outdir)-$(PAPERSIZE) && dvips $(DVIPS_FLAGS)  -t$(PAPERSIZE) -o $(@F) $(<F)