]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / make / ly-rules.make
1 .SUFFIXES: .doc .dvi .tely .texi .ly
2
3
4 $(outdir)/%.latex $(outdir)/%.psfonts:  %.doc
5         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --verbose $(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         rm -f $$(grep -LF '% eof' $(outdir)/lily-*systems.tex 2>/dev/null)
11         $(PYTHON) $(LILYPOND_BOOK) --psfonts $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
12
13
14 $(outdir)/%.texi: $(outdir)/%.tely
15         rm -f $$(grep -LF '% eof' $(outdir)/lily-*systems.tex 2>/dev/null)
16         $(PYTHON) $(LILYPOND_BOOK) --psfonts $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND_BINARY) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
17 #
18 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
19 #       rm -f $<
20
21 # nexi: n[o-lilypond t]exi
22 # for plain info doco: don't run lilypond
23 $(outdir)/%.nexi: %.tely
24         rm -f $(outdir)/$*.texi
25         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) --process='true' $<
26         mv -f $(outdir)/$*.texinfo $@ 2>/dev/null || mv -f $(outdir)/$*.texi $@
27
28 $(outdir)/%.info: $(outdir)/%.nexi
29         $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
30
31 $(outdir)/%.html.omf: %.tely
32         $(call GENERATE_OMF,html)
33
34 $(outdir)/%.pdf.omf: %.tely
35         $(call GENERATE_OMF,pdf)
36
37 $(outdir)/%.ps.gz.omf: %.tely
38         $(call GENERATE_OMF,ps.gz)
39
40 $(outdir)/%.html.omf: $(outdir)/%.texi
41         $(call GENERATE_OMF,html)
42
43 $(outdir)/%.pdf.omf: $(outdir)/%.texi
44         $(call GENERATE_OMF,pdf)
45
46 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
47         $(call GENERATE_OMF,ps.gz)