]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-book-vars.make
Build: Also track verbatiminclude'd files (issue 3594).
[lilypond.git] / make / lilypond-book-vars.make
1 # rules for directories with html files.
2
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)
8
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)
19
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}
28 else
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}
32 endif
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}
39 else
40 OUT_DOCBOOK_FILES = ${DOCBOOK_FILES:%.lyxml=$(outdir)/%.xml}
41 endif
42
43 OUT_FILES = $(sort $(OUT_HTML_FILES) \
44                             $(OUT_HTMLY_FILES) \
45                             $(OUT_XML_FILES) \
46                             $(OUT_LYTEX_FILES) \
47                             $(OUT_LATEX_FILES) \
48                             $(OUT_TEX_FILES) \
49                             $(OUT_TEXI_FILES) \
50                             $(OUT_TEXINFO_FILES) \
51                             $(OUT_TELY_FILES) \
52                             $(OUT_DOCBOOK_FILES))
53
54 ALL_SOURCES +=\
55  $(HTML_FILES)\
56  $(HTMLY_FILES)\
57  $(XML_FILES)\
58  $(LYTEX_FILES)\
59  $(LATEX_FILES)\
60  $(TEX_FILES)\
61  $(TEXINFO_FILES)\
62  $(DOCBOOK_FILES)