]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
($(outdir)/%.pdf): backport -u +lilypond.map
[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) $<
34         mv $(@D)/$(*F).texi $@
35         chmod -w $@
36
37 # nfo: info from non-lily texi
38 $(outdir)/%.info: $(outdir)/%.nexi
39         $(MAKEINFO) --output=$(outdir)/$(*F).info $<
40
41 # nfo: info from non-lily texi
42 #$(outdir)/%.nfo: $(outdir)/%.nexi
43 #       $(MAKEINFO) --output=$(outdir)/$(*F).info $<
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  -Ppdf $<
57         ps2pdf $@.pdfps $@
58