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