]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
release commit
[lilypond.git] / stepmake / stepmake / tex-rules.make
index 7b0b9820db4ab43206a9df28389e61ad8e9b6570..e4fa7b301eaea9d947564298a01c8eadcbe08df3 100644 (file)
@@ -1,4 +1,6 @@
 
+$(outdir)/%.tex: %.tex
+       cp $< $@
 
 $(outdir)/%.dvi: $(outdir)/%.tex
        (cd $(outdir); tex \\nonstopmode \\input $(<F))
@@ -6,10 +8,15 @@ $(outdir)/%.dvi: $(outdir)/%.tex
 $(outdir)/%.dvi: $(outdir)/%.latex
        (cd $(outdir)&& \
          latex \\nonstopmode \\input $(<F)&&\
-         (bibtex $(basename $(<F))&&\
+         (bibtex $(basename $(<F)) || true) && \
          latex \\nonstopmode \\input $(<F)&&\
-         latex \\nonstopmode \\input $(<F) ) || true)
+         (makeindex $(basename $(<F)) || true) && \
+         latex \\nonstopmode \\input $(<F) )
+
 
 $(outdir)/%.ps: $(outdir)/%.dvi
-       dvips -ta4 -o $@ $<
+       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)