]> git.donarmstrong.com Git - lilypond.git/blob - make/ly-rules.make
* mf/merge.pe.in: Set font names, version, license GPL.
[lilypond.git] / make / ly-rules.make
1 .SUFFIXES: .doc .dvi .tely .texi .ly
2
3
4 $(outdir)/%.latex: %.doc
5         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --verbose $(LILYPOND_BOOK_FLAGS) $<
6
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 '\lilypondend' $(outdir)/lily-*.tex 2>/dev/null)
11         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
12
13 $(outdir)/%.texi: $(outdir)/%.tely
14         rm -f $$(grep -LF '\lilypondend' $(outdir)/lily-*.tex 2>/dev/null)
15         $(PYTHON) $(LILYPOND_BOOK) $(LILYPOND_BOOK_INCLUDES) --process='$(LILYPOND) $(LILYPOND_BOOK_INCLUDES)' --output=$(outdir) --format=$(LILYPOND_BOOK_FORMAT) --verbose $(LILYPOND_BOOK_FLAGS) $<
16 #
17 # DON'T REMOVE SOURCE FILES, otherwise the .TEXI ALWAYS OUT OF DATE.
18 #       rm -f $<
19
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 $@
26 # makeinfo <= 4.6 image bug workaround
27         if [ $(MAKEINFO_VERSION) -le 4006000 ]; then \
28                 (cd $(outdir) && \
29                 ls -1 lily-*.ly | sed 's/.ly$$/.txt/' | xargs touch) || true; \
30         fi
31
32 $(outdir)/%.info: $(outdir)/%.nexi
33         $(MAKEINFO) -I $(outdir) --output=$(outdir)/$(*F).info $<
34
35 # Timothy's booklet
36 #
37 $(outdir)/%-book.ps: $(outdir)/%.ps
38         psbook $< $<.tmp
39         pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' $<.tmp $@
40
41 $(outdir)/%.pdf: $(outdir)/%.dvi
42         dvips $(DVIPS_FLAGS)  -o $@.pdfps -t $(DVIPS_PAPERSIZE)  $<
43         ps2pdf -sPAPERSIZE=$(DVIPS_PAPERSIZE) $@.pdfps $@
44
45 $(outdir)/%.html.omf: %.tely
46         $(call GENERATE_OMF,html)
47
48 $(outdir)/%.pdf.omf: %.tely
49         $(call GENERATE_OMF,pdf)
50
51 $(outdir)/%.ps.gz.omf: %.tely
52         $(call GENERATE_OMF,ps.gz) 
53
54 $(outdir)/%.html.omf: $(outdir)/%.texi
55         $(call GENERATE_OMF,html)
56
57 $(outdir)/%.pdf.omf: $(outdir)/%.texi
58         $(call GENERATE_OMF,pdf)
59
60 $(outdir)/%.ps.gz.omf: $(outdir)/%.texi
61         $(call GENERATE_OMF,ps.gz)