]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
patch::: 1.5.5.jcn2
[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         rm -f $@
8         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --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         rm -f $@
15         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi $<
16         chmod -w $@
17
18 $(outdir)/%.texi: $(outdir)/%.tely
19         rm -f $@
20         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi $<
21         rm -f $<
22         chmod -w $@
23
24 # nexi: no-lily texi
25 # for plain info doco: don't run lily
26 $(outdir)/%.nexi: %.tely
27         rm -f $@
28         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi --no-lily $<
29         mv $(@D)/$(*F).texi $@
30         chmod -w $@
31
32 # nfo: info from non-lily texi
33 $(outdir)/%.info: $(outdir)/%.nexi
34         $(MAKEINFO) --output=$(outdir)/$(*F).info $<
35
36 # nfo: info from non-lily texi
37 #$(outdir)/%.nfo: $(outdir)/%.nexi
38 #       $(MAKEINFO) --output=$(outdir)/$(*F).info $<
39
40 $(outdir)/%.tex: $(outdir)/%.ly
41         $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $< 
42
43 #
44 # Timothy's booklet
45 #
46 $(outdir)/%-book.ps: $(outdir)/%.ps
47         psbook $< $<.tmp
48         pstops  '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@