summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorReinhold Kainhofer <reinhold@kainhofer.com>2010-05-29 22:07:27 +0200
committerReinhold Kainhofer <reinhold@kainhofer.com>2010-07-03 13:26:51 +0200
commitf321911c01364d21adeea94a6979fd6e1393be4e (patch)
tree01e0fd88602327652bb1189fd5b5e64b9175abb4 /make
parentc08377573e22de6e76310f245c1d5bd20e921c3b (diff)
Lilypond-book: Add build structure for docbook regtests
Diffstat (limited to 'make')
-rw-r--r--make/lilypond-book-rules.make3
-rw-r--r--make/lilypond-book-vars.make10
2 files changed, 11 insertions, 2 deletions
diff --git a/make/lilypond-book-rules.make b/make/lilypond-book-rules.make
index 3bdcf47745..6272085500 100644
--- a/make/lilypond-book-rules.make
+++ b/make/lilypond-book-rules.make
@@ -17,3 +17,6 @@ $(outdir)/%.tex: %.latex
$(outdir)/%.pdf: $(outdir)/%.tex
cd $(outdir) && pdflatex $(notdir $<)
+
+$(outdir)/%.xml: %.lyxml
+ $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
diff --git a/make/lilypond-book-vars.make b/make/lilypond-book-vars.make
index c8a4979c51..e007bc40c8 100644
--- a/make/lilypond-book-vars.make
+++ b/make/lilypond-book-vars.make
@@ -11,17 +11,23 @@ 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_DOCBOOK_FILES = $(call src-wildcard,*.lyxml)
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_DOCBOOK_FILES = ${LILYBOOK_DOCBOOK_FILES:%.lyxml=$(outdir)/%.xml}
LILYBOOK_OUT_FILES = $(sort $(LILYBOOK_OUT_HTML_FILES) \
$(LILYBOOK_OUT_XML_FILES) \
$(LILYBOOK_OUT_LYTEX_FILES) \
$(LILYBOOK_OUT_LATEX_FILES) \
- $(LILYBOOK_OUT_TEX_FILES))
+ $(LILYBOOK_OUT_TEX_FILES) \
+ $(LILYBOOK_OUT_DOOCBOOK_FILES)) \
+
+EXTRA_DIST_FILES += $(LILYBOOK_HTML_FILES) $(LILYBOOK_XML_FILES) \
+ $(LILYBOOK_LYTEX_FILES) $(LILYBOOK_LATEX_FILES) \
+ $(LILYBOOK_TEX_FILES) $(LILYBOOK_DOCBOOK_FILES)
-EXTRA_DIST_FILES += $(LILYBOOK_HTML_FILES)