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