]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
patch::: 1.3.131.jcn1
[lilypond.git] / stepmake / stepmake / tex-rules.make
index f48e99c7d0bfcbdf5e633e842abdbba398c3361e..6a8c78b764f1738f048b1c4e5a1a53805c9f78e4 100644 (file)
@@ -9,10 +9,13 @@ $(outdir)/%.dvi: $(outdir)/%.latex
        (cd $(outdir)&& \
          latex \\nonstopmode \\input $(<F)&&\
          (bibtex $(basename $(<F)) || true) && \
-         (makeindex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F)&&\
+         (makeindex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F) )
 
 $(outdir)/%.ps: $(outdir)/%.dvi
-       dvips -ta4 -o $@ $<
+       cd $(outdir) && dvips -ta4 -o $(@F) $(<F)
+
+$(outdir)-$(PAPERSIZE)/%.ps: $(outdir)-$(PAPERSIZE)/%.dvi
+       cd $(outdir)-$(PAPERSIZE) && dvips -t$(PAPERSIZE) -o $(@F) $(<F)