]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
($(outdir)/%.pdf): add DVIPS_FLAGS. This will
[lilypond.git] / make / ly-rules.make
1 .SUFFIXES: .doc .dvi .tely .texi .ly
2
3
4 $(outdir)/%.latex: %.doc
5         if [ -f $@ ]; then chmod a+w $@; fi
6         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --verbose $(LILYPOND_BOOK_FLAGS) $<
7         chmod -w $@
8
9 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
10 # it is not, for --srcdir builds
11 $(outdir)/%.texi: %.tely
12         if [ -f $@ ]; then chmod a+w $@; fi
13         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
14         chmod -w $@
15
16 $(outdir)/%.texi: $(outdir)/%.tely
17         if [ -f $@ ]; then chmod a+w $@; fi
18         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
19 #
20 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
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         if [ -f $@ ]; then chmod a+w $@; fi
28         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) --process='true' $<
29         mv $(outdir)/$*.texinfo $@ 2>/dev/null || mv $(outdir)/$*.texi $@
30         chmod -w $@
31
32 # nfo: info from non-lily texi
33 $(outdir)/%.info: $(outdir)/%.nexi
34         $(MAKEINFO) -I $(outdir) --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 #
41 # let's not do this: this interferes with the lilypond-book dependency mechanism.
42 #
43 ##$(outdir)/%.tex: $(outdir)/%.ly
44 ##      $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $< 
45
46 #
47 # Timothy's booklet
48 #
49 $(outdir)/%-book.ps: $(outdir)/%.ps
50         psbook $< $<.tmp
51         pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@
52
53 $(outdir)/%.pdf: $(outdir)/%.dvi
54         dvips $(DVIPS_FLAGS)  -o $@.pdfps -t $(DVIPS_PAPERSIZE)  $<
55         ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
56
57
58 $(outdir)/%.html.omf: %.tely
59         $(call GENERATE_OMF,html)
60
61 $(outdir)/%.pdf.omf: %.tely
62         $(call GENERATE_OMF,pdf)
63
64 $(outdir)/%.ps.gz.omf: %.tely
65         $(call GENERATE_OMF,ps.gz) 
66
67
68 $(outdir)/%.html.omf: $(outdir)/%.texi
69         $(call GENERATE_OMF,html)
70
71 $(outdir)/%.pdf.omf: $(outdir)/%.texi
72         $(call GENERATE_OMF,pdf)
73
74 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
75         $(call GENERATE_OMF,ps.gz)