]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/lilypond-book-rules.make
Lilypond-book: Check for dblatex and pdflatex for the regtests
[lilypond.git] / make / lilypond-book-rules.make
index bab711e6d3ca98cce89e1db101ed85e90701ba06..754e88c5ef30210e1e1f00d49fe8e1ab64ac747f 100644 (file)
@@ -20,9 +20,11 @@ $(outdir)/%.tex:  %.tex
 $(outdir)/%.tex:  %.latex
        $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
 
+# Add the tex => pdf rule only if we have dblatex
+ifeq (,$(findstring pdflatex,$(MISSING_OPTIONAL)))
 $(outdir)/%.pdf:  $(outdir)/%.tex
-       cd $(outdir) && pdflatex $(notdir $<)
-
+       cd $(outdir) && $(PDFLATEX) $(notdir $<)
+endif
 
 ############## Texinfo ######################
 
@@ -44,5 +46,8 @@ $(outdir)/%.texi:  %.tely
 $(outdir)/%.xml:  %.lyxml
        $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
 
+# Add the xml => pdf rule only if we have dblatex
+ifeq (,$(findstring dblatex,$(MISSING_OPTIONAL)))
 $(outdir)/%.pdf:  $(outdir)/%.xml
-       cd $(outdir) && dblatex $(notdir $<)
+       cd $(outdir) && $(DBLATEX) $(notdir $<)
+endif