]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
* VERSION (MY_PATCH_LEVEL): make 1.7.0
[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)\
9 $(LILYPOND_BOOK_FLAGS) --verbose --dependencies --outdir=$(outdir) $<
10         chmod -w $@
11
12 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
13 # it is not, for --srcdir builds
14 $(outdir)/%.texi: %.tely
15         -chmod a+w $@
16         set|egrep '(TEX|LILY)'  # ugh, what's this?
17         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi --verbose $(LILYPOND_BOOK_FLAGS) $<
18         chmod -w $@
19
20 $(outdir)/%.texi: $(outdir)/%.tely
21         -chmod a+w $@
22 # debugging:
23 #       set|egrep '(TEX|LILY)'
24         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi --verbose $(LILYPOND_BOOK_FLAGS) $<
25 #
26 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
27 #       rm -f $<
28         chmod -w $@
29
30 # nexi: no-lily texi
31 # for plain info doco: don't run lily
32 $(outdir)/%.nexi: %.tely
33         -chmod a+w $@
34         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi --no-lily $(LILYPOND_BOOK_FLAGS) $<
35         mv $(@D)/$(*F).texi $@
36         chmod -w $@
37
38 # nfo: info from non-lily texi
39 $(outdir)/%.info: $(outdir)/%.nexi
40         $(MAKEINFO) --output=$(outdir)/$(*F).info $<
41
42 # nfo: info from non-lily texi
43 #$(outdir)/%.nfo: $(outdir)/%.nexi
44 #       $(MAKEINFO) --output=$(outdir)/$(*F).info $<
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  -Ppdf $<
58         ps2pdf $@.pdfps $@
59