]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
* cygwin/changelog:
[lilypond.git] / stepmake / stepmake / tex-rules.make
index ccbb7c3ab1fe97adcd619dbcbdbb7fe924f9c7b0..482957c5585f07011bc0423855feb639c058cb3b 100644 (file)
@@ -1,4 +1,6 @@
 
+$(outdir)/%.tex: %.tex
+       cp $< $@
 
 $(outdir)/%.dvi: $(outdir)/%.tex
        (cd $(outdir); tex \\nonstopmode \\input $(<F))
@@ -6,11 +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)&&\
-       )
+         (makeindex $(basename $(<F)) || true) && \
+         latex \\nonstopmode \\input $(<F) )
+
 
 $(outdir)/%.ps: $(outdir)/%.dvi
-       dvips -ta4 -o $@ $<
+       cd $(outdir) && dvips -t $(DVIPS_PAPERSIZE) -o $(@F) $(<F)
+
+$(outdir)-$(PAPERSIZE)/%.ps: $(outdir)-$(PAPERSIZE)/%.dvi
+       cd $(outdir)-$(PAPERSIZE) && dvips -t$(PAPERSIZE) -o $(@F) $(<F)