]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/tex-rules.make
release: 1.1.69
[lilypond.git] / stepmake / stepmake / tex-rules.make
index 96f2bd0ae864906181b14b93a46cc1019dff83ff..bd8aee3ceb1c45c11aceec87a7aead71cb5bec0d 100644 (file)
@@ -1,15 +1,17 @@
 
+$(outdir)/%.tex: %.tex
+       cp $< $@
 
 $(outdir)/%.dvi: $(outdir)/%.tex
        (cd $(outdir); tex \\nonstopmode \\input $(<F))
 
 $(outdir)/%.dvi: $(outdir)/%.latex
-       (cd $(outdir); \
-         latex \\nonstopmode \\input $(<F);\
-         bibtex $(basename $(<F));\
-         latex \\nonstopmode \\input $(<F);\
-         latex \\nonstopmode \\input $(<F);\
-       )
+       (cd $(outdir)&& \
+         latex \\nonstopmode \\input $(<F)&&\
+         (bibtex $(basename $(<F)) || true) && \
+         latex \\nonstopmode \\input $(<F)&&\
+kk       (makeindex $(basename $(<F)) || true) && \
+         latex \\nonstopmode \\input $(<F) )
 
 $(outdir)/%.ps: $(outdir)/%.dvi
        dvips -ta4 -o $@ $<