1 # rules for directories with html files.
3 LILYPOND_BOOK_COMMAND = LILYPOND_VERSION=$(TOPLEVEL_VERSION) \
4 PDFTEX=$(PDFTEX) PDFLATEX=$(PDFLATEX) \
5 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) \
6 --process='$(LILYPOND_BOOK_PROCESS) \
7 $(LILYPOND_BOOK_LILYPOND_FLAGS)' --output=$(outdir) \
8 --redirect-lilypond-output $(LILYPOND_BOOK_FLAGS)
10 HTML_FILES = $(call src-wildcard,*.html)
11 HTMLY_FILES = $(call src-wildcard,*.htmly)
12 XML_FILES = $(call src-wildcard,*.xml)
13 LYTEX_FILES = $(call src-wildcard,*.lytex)
14 LATEX_FILES = $(call src-wildcard,*.latex)
15 TEX_FILES = $(call src-wildcard,*.tex)
16 TEXI_FILES = $(call src-wildcard,*.texi)
17 TEXINFO_FILES = $(call src-wildcard,*.texinfo)
18 TELY_FILES = $(call src-wildcard,*.tely)
19 DOCBOOK_FILES = $(call src-wildcard,*.lyxml)
21 OUT_HTML_FILES = ${HTML_FILES:%.html=$(outdir)/%.html}
22 OUT_HTMLY_FILES = ${HTMLY_FILES:%.htmly=$(outdir)/%.html}
23 OUT_XML_FILES = ${XML_FILES:%.xml=$(outdir)/%.html}
24 # If we have pdflatex, create the pdf, otherwise only the .tex file!
25 ifeq (,$(findstring pdflatex,$(MISSING_OPTIONAL)))
26 OUT_LYTEX_FILES = ${LYTEX_FILES:%.lytex=$(outdir)/%.pdf}
27 OUT_LATEX_FILES = ${LATEX_FILES:%.latex=$(outdir)/%.pdf}
28 OUT_TEX_FILES = ${TEX_FILES:%.tex=$(outdir)/%.pdf}
30 OUT_LYTEX_FILES = ${LYTEX_FILES:%.lytex=$(outdir)/%.tex}
31 OUT_LATEX_FILES = ${LATEX_FILES:%.latex=$(outdir)/%.tex}
32 OUT_TEX_FILES = ${TEX_FILES:%.tex=$(outdir)/%.tex}
34 OUT_TEXI_FILES = ${TEXI_FILES:%.texi=$(outdir)/%.html}
35 OUT_TEXINFO_FILES = ${TEXINFO_FILES:%.texinfo=$(outdir)/%.html}
36 OUT_TELY_FILES = ${TELY_FILES:%.tely=$(outdir)/%.html}
37 # If we have dblatex, create the pdf, otherwise only the .xml file!
38 ifeq (,$(findstring dblatex,$(MISSING_OPTIONAL)))
39 OUT_DOCBOOK_FILES = ${DOCBOOK_FILES:%.lyxml=$(outdir)/%.pdf}
41 OUT_DOCBOOK_FILES = ${DOCBOOK_FILES:%.lyxml=$(outdir)/%.xml}
43 ifeq ($(PDFLATEX),xelatex)
44 DBLATEX_BACKEND = -b xetex
49 OUT_FILES = $(sort $(OUT_HTML_FILES) \
56 $(OUT_TEXINFO_FILES) \