]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/lilypond-book-rules.make
Imported Upstream version 2.16.0
[lilypond.git] / make / lilypond-book-rules.make
index e5a03790b4ae37d9fee09a56aae7fa5303d8a122..d12c27ebcde1749725581a12db10403de7f0598d 100644 (file)
@@ -15,7 +15,7 @@ $(outdir)/%.html:  %.xml
 ############## LaTeX ########################
 
 $(outdir)/%.tex:  %.lytex
-       $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
+       $(buildscript-dir)/run-and-check "$(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<"  "$*.lytex.log"
 
 $(outdir)/%.tex:  %.tex
        $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
@@ -23,10 +23,10 @@ $(outdir)/%.tex:  %.tex
 $(outdir)/%.tex:  %.latex
        $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
 
-# Add the tex => pdf rule only if we have dblatex
+# Add the tex => pdf rule only if we have pdflatex
 ifeq (,$(findstring pdflatex,$(MISSING_OPTIONAL)))
 $(outdir)/%.pdf:  $(outdir)/%.tex
-       cd $(outdir) && $(PDFLATEX) $(notdir $<)
+       cd $(outdir) && $(buildscript-dir)/run-and-check "$(PDFLATEX) -halt-on-error $(notdir $<)" "$*.pdflatex.log"
 endif
 
 ############## Texinfo ######################