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