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