Nitpick: ly:spanner-bound grob name slur -> spanner.
[lilypond.git] / make / ly-rules.make
blob52ee4b015ed731b0a46d47e3fa3f62dfc6d604d4
1 .SUFFIXES: .doc .tely .texi .ly
3 # TODO: fix hardcoded out/ ?
4 LYS_OUTPUT_OPTION= --lily-output-dir $(LYS_OUTPUT_DIR)
5 LYS_OUTPUT_DIR=$(top-build-dir)/out/lybook-db/
6 LILYPOND_BOOK_FLAGS += $(LYS_OUTPUT_OPTION)
7 $(outdir)/%.latex: %.doc $(INIT_LY_SOURCES) $(SCHEME_SOURCES)
8 LILYPOND_VERSION=$(TOPLEVEL_VERSION) $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BOOK_PROCESS) $(LILYPOND_BOOK_LILYPOND_FLAGS)' --output=$(outdir) $(LILYPOND_BOOK_FLAGS) $<
11 # This allows -j make option while making sure only one lilypond-book instance
12 # is running at the same time
13 define CHAIN_RULE
14 $(i)
15 $(i):
16 endef
18 $(eval $(firstword $(MASTER_TEXI_FILES)): $(foreach i, $(wordlist 2, $(words $(MASTER_TEXI_FILES)), $(MASTER_TEXI_FILES)),$(CHAIN_RULE)))
20 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
21 # it is not, for --srcdir builds
22 $(outdir)/%.texi: %.tely $(outdir)/version.itexi $(DOCUMENTATION_LOCALE_TARGET) $(INIT_LY_SOURCES) $(SCHEME_SOURCES)
23 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) $<
26 $(outdir)/%.texi: $(outdir)/%.tely $(outdir)/version.itexi $(DOCUMENTATION_LOCALE_TARGET) $(INIT_LY_SOURCES) $(SCHEME_SOURCES)
27 LILYPOND_VERSION=$(TOPLEVEL_VERSION) $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BOOK_PROCESS) $(LILYPOND_BOOK_INCLUDES) $(LILYPOND_BOOK_LILYPOND_FLAGS)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) $<
30 $(outdir)/%.html.omf: %.tely
31 $(call GENERATE_OMF,html)
33 $(outdir)/%.pdf.omf: %.tely
34 $(call GENERATE_OMF,pdf)
36 $(outdir)/%.ps.gz.omf: %.tely
37 $(call GENERATE_OMF,ps.gz)
39 $(outdir)/%.html.omf: $(outdir)/%.texi
40 $(call GENERATE_OMF,html)
42 $(outdir)/%.pdf.omf: $(outdir)/%.texi
43 $(call GENERATE_OMF,pdf)
45 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
46 $(call GENERATE_OMF,ps.gz)