]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
Docs makefiles: get rid of unconditional translations postprocessing
[lilypond.git] / stepmake / stepmake / tex-rules.make
index bd8aee3ceb1c45c11aceec87a7aead71cb5bec0d..6751e5da9a03b292ae95b1535bcdbb0053d99928 100644 (file)
@@ -10,9 +10,27 @@ $(outdir)/%.dvi: $(outdir)/%.latex
          latex \\nonstopmode \\input $(<F)&&\
          (bibtex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F)&&\
-kk       (makeindex $(basename $(<F)) || true) && \
+         (makeindex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F) )
 
-$(outdir)/%.ps: $(outdir)/%.dvi
-       dvips -ta4 -o $@ $<
+$(outdir)/%.pdf: $(outdir)/%.dvi
+       cd $(outdir) \
+               && dvips $(DVIPS_FLAGS) -t $(DVIPS_PAPERSIZE) \
+                       -o $(@F).pdfps $(<F) \
+               && 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
+