''
[lilypond.git] / make / ly-rules.make
blob2f5b4942352f01a5b951e7570fc1ee918cb56ed7
1 # Mudela_rules.make
3 .SUFFIXES: .doc .dvi .mudtex .tely .texi .ly
6 $(outdir)/%.latex: %.doc
7 rm -f $@
8 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES)\
9 $(LILYPOND_BOOK_FLAGS) --dependencies --outdir=$(outdir) $<
10 chmod -w $@
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 rm -f $@
16 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi $(LILYPOND_BOOK_FLAGS) $<
17 chmod -w $@
19 $(outdir)/%.texi: $(outdir)/%.tely
20 rm -f $@
21 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi $(LILYPOND_BOOK_FLAGS) $<
22 rm -f $<
23 chmod -w $@
25 # nexi: no-lily texi
26 # for plain info doco: don't run lily
27 $(outdir)/%.nexi: %.tely
28 rm -f $@
29 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --dependencies --outdir=$(outdir) --format=texi --no-lily $(LILYPOND_BOOK_FLAGS) $<
30 mv $(@D)/$(*F).texi $@
31 chmod -w $@
33 # nfo: info from non-lily texi
34 $(outdir)/%.info: $(outdir)/%.nexi
35 $(MAKEINFO) --output=$(outdir)/$(*F).info $<
37 # nfo: info from non-lily texi
38 #$(outdir)/%.nfo: $(outdir)/%.nexi
39 # $(MAKEINFO) --output=$(outdir)/$(*F).info $<
41 $(outdir)/%.tex: $(outdir)/%.ly
42 $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $<
45 # Timothy's booklet
47 $(outdir)/%-book.ps: $(outdir)/%.ps
48 psbook $< $<.tmp
49 pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@