]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
(Snippet.output_print_filename): new
[lilypond.git] / make / ly-rules.make
1 .SUFFIXES: .doc .dvi .tely .texi .ly
2
3
4 $(outdir)/%.latex: %.doc
5         if [ -f $@ ]; then chmod a+w $@; fi
6         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --verbose $(LILYPOND_BOOK_FLAGS) $<
7         chmod -w $@
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         if [ -f $@ ]; then chmod a+w $@; fi
13         time $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
14         chmod -w $@
15
16 $(outdir)/%.texi: $(outdir)/%.tely
17         if [ -f $@ ]; then chmod a+w $@; fi
18 # debugging:
19 #       set|egrep '(TEX|LILY)'
20         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
21 #
22 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
23 #       rm -f $<
24         chmod -w $@
25
26 # nexi: no-lily texi
27 # for plain info doco: don't run lily
28 $(outdir)/%.nexi: %.tely
29         if [ -f $@ ]; then chmod a+w $@; fi
30         time $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) --process='true' $<
31         mv $(outdir)/$*.texinfo $@ 2>/dev/null || mv $(outdir)/$*.texi $@
32         chmod -w $@
33
34 # nfo: info from non-lily texi
35 $(outdir)/%.info: $(outdir)/%.nexi
36         $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
37
38 # nfo: info from non-lily texi
39 #$(outdir)/%.nfo: $(outdir)/%.nexi
40 #       $(MAKEINFO) --output=$(outdir)/$(*F).info $<
41
42 #
43 # let's not do this: this interferes with the lilypond-book dependency mechanism.
44 #
45 ##$(outdir)/%.tex: $(outdir)/%.ly
46 ##      $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $< 
47
48 #
49 # Timothy's booklet
50 #
51 $(outdir)/%-book.ps: $(outdir)/%.ps
52         psbook $< $<.tmp
53         pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@
54
55 $(outdir)/%.pdf: $(outdir)/%.dvi
56         dvips -u +lilypond.map -o $@.pdfps -t $(DVIPS_PAPERSIZE)  -Ppdf $<
57         ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
58
59
60 $(outdir)/%.html.omf: %.tely
61         $(call GENERATE_OMF,html)
62
63 $(outdir)/%.pdf.omf: %.tely
64         $(call GENERATE_OMF,pdf)
65
66 $(outdir)/%.ps.gz.omf: %.tely
67         $(call GENERATE_OMF,ps.gz) 
68
69
70 $(outdir)/%.html.omf: $(outdir)/%.texi
71         $(call GENERATE_OMF,html)
72
73 $(outdir)/%.pdf.omf: $(outdir)/%.texi
74         $(call GENERATE_OMF,pdf)
75
76 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
77         $(call GENERATE_OMF,ps.gz)