]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
Merge with master
[lilypond.git] / make / ly-rules.make
1 .SUFFIXES: .doc .tely .texi .ly
2
3
4 $(outdir)/%.latex:  %.doc
5         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir)  $(LILYPOND_BOOK_FLAGS) $<
6
7 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
8 # it is not, for --srcdir builds
9 $(outdir)/%.texi: %.tely
10         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) $<
11
12
13 $(outdir)/%.texi: $(outdir)/%.tely
14         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) $<
15 #
16 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
17 #       rm -f $<
18
19 # nexi: n[o-lilypond t]exi
20 # for plain info doco: don't run lilypond
21 $(outdir)/%.nexi: %.tely
22         rm -f $(outdir)/$*.texi
23         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) $(LILYPOND_BOOK_FLAGS) --process='true' $<
24         mv -f $(outdir)/$*.texinfo $@ 2>/dev/null || mv -f $(outdir)/$*.texi $@
25
26 $(outdir)/%.info: $(outdir)/%.nexi
27         $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
28
29 $(outdir)/%.html.omf: %.tely
30         $(call GENERATE_OMF,html)
31
32 $(outdir)/%.pdf.omf: %.tely
33         $(call GENERATE_OMF,pdf)
34
35 $(outdir)/%.ps.gz.omf: %.tely
36         $(call GENERATE_OMF,ps.gz)
37
38 $(outdir)/%.html.omf: $(outdir)/%.texi
39         $(call GENERATE_OMF,html)
40
41 $(outdir)/%.pdf.omf: $(outdir)/%.texi
42         $(call GENERATE_OMF,pdf)
43
44 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
45         $(call GENERATE_OMF,ps.gz)