1 .SUFFIXES: .doc .dvi .tely .texi .ly
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) $<
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 set|egrep '(TEX|LILY)' # ugh, what's this?
14 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
17 $(outdir)/%.texi: $(outdir)/%.tely
18 if [ -f $@ ]; then chmod a+w $@; fi
20 # set|egrep '(TEX|LILY)'
21 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
23 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
28 # for plain info doco: don't run lily
29 $(outdir)/%.nexi: %.tely
30 if [ -f $@ ]; then chmod a+w $@; fi
31 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) --process='true' $<
32 mv $(outdir)/$*.texinfo $@ 2>/dev/null || mv $(outdir)/$*.texi $@
35 # nfo: info from non-lily texi
36 $(outdir)/%.info: $(outdir)/%.nexi
37 $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
39 # nfo: info from non-lily texi
40 #$(outdir)/%.nfo: $(outdir)/%.nexi
41 # $(MAKEINFO) --output=$(outdir)/$(*F).info $<
44 # let's not do this: this interferes with the lilypond-book dependency mechanism.
46 ##$(outdir)/%.tex: $(outdir)/%.ly
47 ## $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $<
52 $(outdir)/%-book.ps: $(outdir)/%.ps
54 pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@
56 $(outdir)/%.pdf: $(outdir)/%.dvi
57 dvips -u +lilypond.map -o $@.pdfps -t $(DVIPS_PAPERSIZE) -Ppdf $<
58 ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
61 $(outdir)/%.html.omf: %.tely
62 $(call GENERATE_OMF,html)
64 $(outdir)/%.pdf.omf: %.tely
65 $(call GENERATE_OMF,pdf)
67 $(outdir)/%.ps.gz.omf: %.tely
68 $(call GENERATE_OMF,ps.gz)
71 $(outdir)/%.html.omf: $(outdir)/%.texi
72 $(call GENERATE_OMF,html)
74 $(outdir)/%.pdf.omf: $(outdir)/%.texi
75 $(call GENERATE_OMF,pdf)
77 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
78 $(call GENERATE_OMF,ps.gz)