]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond-book-rules.make
Add '-dcrop' option to ps and svg backends
[lilypond.git] / make / lilypond-book-rules.make
1 .SUFFIXES: .html .xml .lytex .tex .latex .lyxml .tely .texi .texinfo
2
3 ############## HTML #########################
4
5 $(outdir)/%.html:  %.html
6         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
7
8 $(outdir)/%.html:  %.htmly
9         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
10
11 $(outdir)/%.html:  %.xml
12         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
13
14
15 ############## LaTeX ########################
16
17 $(outdir)/%.tex:  %.lytex
18         $(buildscript-dir)/run-and-check "$(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<"  "$*.lytex.log"
19
20 $(outdir)/%.tex:  %.tex
21         $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
22
23 $(outdir)/%.tex:  %.latex
24         $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
25
26 # Add the tex => pdf rule only if we have pdflatex
27 ifeq (,$(findstring pdflatex,$(MISSING_OPTIONAL)))
28 $(outdir)/%.pdf:  $(outdir)/%.tex
29         cd $(outdir) && $(buildscript-dir)/run-and-check "$(PDFLATEX) -halt-on-error $(notdir $<)" "$*.pdflatex.log"
30 ifeq ($(USE_EXTRACTPDFMARK),yes)
31         $(EXTRACTPDFMARK) -o $(outdir)/$*.pdfmark $@
32         $(GS920) -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=$(outdir)/$*.final.pdf -c "30000000 setvmthreshold" -f $(top-build-dir)/out-fonts/*.font.ps $(outdir)/$*.pdfmark $@
33         rm $@
34         mv $(outdir)/$*.final.pdf $@
35 endif
36 endif
37
38 ############## Texinfo ######################
39
40 $(outdir)/%.texi:  %.texi
41         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
42
43 $(outdir)/%.texi:  %.itexi
44         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
45
46 $(outdir)/%.texi:  %.texinfo
47         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
48
49 $(outdir)/%.texi:  %.tely
50         $(LILYPOND_BOOK_COMMAND) -o $(outdir) $<
51
52
53 ############## DocBook ######################
54
55 $(outdir)/%.xml:  %.lyxml
56         $(LILYPOND_BOOK_COMMAND) --pdf -o $(outdir) $<
57
58 # Add the xml => pdf rule only if we have dblatex
59 ifeq (,$(findstring dblatex,$(MISSING_OPTIONAL)))
60 $(outdir)/%.pdf:  $(outdir)/%.xml
61         cd $(outdir) && $(buildscript-dir)/run-and-check "$(DBLATEX) $(DBLATEX_BACKEND) $(notdir $<)" "$*.dblatex.log"
62 ifeq ($(USE_EXTRACTPDFMARK),yes)
63         $(EXTRACTPDFMARK) -o $(outdir)/$*.pdfmark $@
64         $(GS920) -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dAutoRotatePages=/None -sOutputFile=$(outdir)/$*.final.pdf -c "30000000 setvmthreshold" -f $(top-build-dir)/out-fonts/*.font.ps $(outdir)/$*.pdfmark $@
65         rm $@
66         mv $(outdir)/$*.final.pdf $@
67 endif
68 endif