summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorChristian Hitz <christian@klarinett.li>2010-02-14 16:37:55 +0100
committerReinhold Kainhofer <reinhold@kainhofer.com>2010-07-03 13:26:51 +0200
commit2bca5f7486573ef754e92b397692eff8260def52 (patch)
treebdf5e0fed9f5d3e90948ce42906f1d9969f5a177 /make
parent2ee5a9e0ff9cb164fc42d2a1964f2d34cc00b9e9 (diff)
Lilypond-book: Add regression tests for TEX.
Diffstat (limited to 'make')
-rw-r--r--make/lilypond-book-rules.make14
-rw-r--r--make/lilypond-book-vars.make12
2 files changed, 24 insertions, 2 deletions
diff --git a/make/lilypond-book-rules.make b/make/lilypond-book-rules.make
index 5304cbeb7a..5b8e08b915 100644
--- a/make/lilypond-book-rules.make
+++ b/make/lilypond-book-rules.make
@@ -1,7 +1,19 @@
-.SUFFIXES: .html .xml
+.SUFFIXES: .html .xml .lytex .tex .latex
$(outdir)/%.html: %.html
../../../out/bin/lilypond-book -o $(outdir) $<
$(outdir)/%.html: %.xml
../../../out/bin/lilypond-book -o $(outdir) $<
+
+$(outdir)/%.tex: %.lytex
+ ../../../out/bin/lilypond-book --pdf -o $(outdir) $<
+
+$(outdir)/%.tex: %.tex
+ ../../../out/bin/lilypond-book --pdf -o $(outdir) $<
+
+$(outdir)/%.tex: %.latex
+ ../../../out/bin/lilypond-book --pdf -o $(outdir) $<
+
+$(outdir)/%.pdf: $(outdir)/%.tex
+ cd $(outdir) && pdflatex $(notdir $<)
diff --git a/make/lilypond-book-vars.make b/make/lilypond-book-vars.make
index 12e7581019..0b7dd247fd 100644
--- a/make/lilypond-book-vars.make
+++ b/make/lilypond-book-vars.make
@@ -2,10 +2,20 @@
LILYBOOK_HTML_FILES = $(call src-wildcard,*.html)
LILYBOOK_XML_FILES = $(call src-wildcard,*.xml)
+LILYBOOK_LYTEX_FILES = $(call src-wildcard,*.lytex)
+LILYBOOK_LATEX_FILES = $(call src-wildcard,*.latex)
+LILYBOOK_TEX_FILES = $(call src-wildcard,*.tex)
LILYBOOK_OUT_HTML_FILES = ${LILYBOOK_HTML_FILES:%.html=$(outdir)/%.html}
LILYBOOK_OUT_XML_FILES = ${LILYBOOK_XML_FILES:%.xml=$(outdir)/%.html}
+LILYBOOK_OUT_LYTEX_FILES = ${LILYBOOK_LYTEX_FILES:%.lytex=$(outdir)/%.pdf}
+LILYBOOK_OUT_LATEX_FILES = ${LILYBOOK_LATEX_FILES:%.latex=$(outdir)/%.pdf}
+LILYBOOK_OUT_TEX_FILES = ${LILYBOOK_TEX_FILES:%.tex=$(outdir)/%.pdf}
-LILYBOOK_OUT_FILES = $(sort $(LILYBOOK_OUT_HTML_FILES) $(LILYBOOK_OUT_XML_FILES))
+LILYBOOK_OUT_FILES = $(sort $(LILYBOOK_OUT_HTML_FILES) \
+ $(LILYBOOK_OUT_XML_FILES) \
+ $(LILYBOOK_OUT_LYTEX_FILES) \
+ $(LILYBOOK_OUT_LATEX_FILES) \
+ $(LILYBOOK_OUT_TEX_FILES))
EXTRA_DIST_FILES += $(LILYBOOK_HTML_FILES)