]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lilypond-book/GNUmakefile
Build: Unify the rules and variables for xref-map files.
[lilypond.git] / input / regression / lilypond-book / GNUmakefile
1 depth = ../../..
2
3 STEPMAKE_TEMPLATES=documentation texinfo
4 LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc lilypond-book
5
6 include $(depth)/make/stepmake.make
7
8 TITLE=lilypond-book Test Suite
9
10 COLLATED_FILES = $(OUT_FILES)
11
12 EXTRA_DIST_FILES = include.mxl
13 EXTRA_DIST_FILES += include.xml
14 EXTRA_DIST_FILES += $(call src-wildcard,*.ly)
15 EXTRA_DIST_FILES += $(call src-wildcard,*.ily)
16 EXTRA_DIST_FILES += $(call src-wildcard,*.tely)
17 EXTRA_DIST_FILES += $(call src-wildcard,*.itely)
18
19 OUT_TEXI_FILES += ${TEXI_FILES:%.texi=$(outdir)/%.info}
20 OUT_TEXI_FILES += ${TEXI_FILES:%.texi=$(outdir)/%.pdf}
21 OUT_TEXINFO_FILES += ${TEXINFO_FILES:%.texinfo=$(outdir)/%.info}
22 OUT_TEXINFO_FILES += ${TEXINFO_FILES:%.texinfo=$(outdir)/%.pdf}
23 OUT_TELY_FILES += ${TELY_FILES:%.tely=$(outdir)/%.info}
24 OUT_TELY_FILES += ${TELY_FILES:%.tely=$(outdir)/%.pdf}
25
26 XML_FILES = $(filter-out include%,$(call src-wildcard,*.xml))
27
28 local-test: $(OUT_FILES)
29
30 $(outdir)/collated-files.list: $(OUT_FILES)
31         echo $(sort $(filter-out %.xml,$(OUT_FILES))) > $@
32
33 $(outdir)/suffix-texi.texi: suffix-texi.texi $(outdir)/version.itexi $(DOCUMENTATION_LOCALE_TARGET) $(INIT_LY_SOURCES) $(SCHEME_SOURCES)
34         LILYPOND_VERSION=$(TOPLEVEL_VERSION) $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BOOK_PROCESS) $(LILYPOND_BOOK_LILYPOND_FLAGS)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) --redirect-lilypond-output $<
35
36 # Due to automatic language detection the standard rule using the script
37 # extract_texi_filenames would create .es.xref-map for these files. The
38 # following rule is to circumvent this for the purpose of the build. For
39 # the regression tests the .xref-map files are empty and not used anyway.
40 $(XREF_MAPS_DIR)/texinfo-include-language-detection.xref-map $(XREF_MAPS_DIR)/texinfo-language-detection.xref-map: %:
41         touch $@
42
43 # Prevent parallel lilypond-book instances for this subdir
44 .NOTPARALLEL: