1 .SUFFIXES: .doc .dvi .tely .texi .ly
4 $(outdir)/%.latex $(outdir)/%.fonts.ps: %.doc
5 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --verbose $(LILYPOND_BOOK_FLAGS) $<
7 # don't do ``cd $(outdir)'', and assume that $(outdir)/.. is the src dir.
8 # it is not, for --srcdir builds
9 $(outdir)/%.texi: %.tely
10 rm -f $$(grep -LF '% eof' $(outdir)/lily-*systems.tex 2>/dev/null)
11 $(PYTHON) $(LILYPOND_BOOK) --psfonts=$(basename $<).fonts.ps $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
13 $(outdir)/%.texi: $(outdir)/%.tely
14 rm -f $$(grep -LF '% eof' $(outdir)/lily-*systems.tex 2>/dev/null)
15 $(PYTHON) $(LILYPOND_BOOK) --psfonts=$(basename $<).fonts.ps $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
17 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
20 # nexi: n[o-lilypond t]exi
21 # for plain info doco: don't run lilypond
22 $(outdir)/%.nexi: %.tely
23 rm -f $(outdir)/$*.texi
24 $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) --process='true' $<
25 mv $(outdir)/$*.texinfo $@ 2>/dev/null || mv $(outdir)/$*.texi $@
27 $(outdir)/%.info: $(outdir)/%.nexi
28 $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
32 $(outdir)/%-book.ps: $(outdir)/%.ps
34 pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@
36 $(outdir)/%.pdf: $(outdir)/%.dvi
37 dvips $(DVIPS_FLAGS) -o $@.pdfps -t $(DVIPS_PAPERSIZE) $<
39 # gs 8.15 complains of safety of loading a ttf directly
40 gs -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$@ -dCompatibilityLevel=1.2 -sPAPERSIZE=a4 -c .setpdfwrite -f $@.pdfps
42 $(outdir)/%.html.omf: %.tely
43 $(call GENERATE_OMF,html)
45 $(outdir)/%.pdf.omf: %.tely
46 $(call GENERATE_OMF,pdf)
48 $(outdir)/%.ps.gz.omf: %.tely
49 $(call GENERATE_OMF,ps.gz)
51 $(outdir)/%.html.omf: $(outdir)/%.texi
52 $(call GENERATE_OMF,html)
54 $(outdir)/%.pdf.omf: $(outdir)/%.texi
55 $(call GENERATE_OMF,pdf)
57 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
58 $(call GENERATE_OMF,ps.gz)