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