lilypond-1.3.65
[lilypond.git] / Documentation / Rules.make
blobb8e14d7d8c6924a9da8c2f6b1075dc1138312540
1 # special rules for the documentation section.
2 # There are too many to add to the general rules
4 .SUFFIXES: .pod .txt .1 .html
6 pod2html=pod2html
7 pod2groff=pod2man --center="LilyPond documentation" --section="0"\
8 --release="LilyPond $(VERSION)" $< > $@
10 $(outdir)/%.gif: %.xpm
11 xpmtoppm $< | ppmtogif > $@
14 $(outdir)/%.ps: $(outdir)/%.dvi
15 dvips -o $@ $<
17 $(outdir)/%.dvi: $(outdir)/%.mudtex
18 latex '\nonstopmode \input $<'
19 mv $(notdir $@) $(outdir)
21 $(outdir)/%.mudtex: %.doc
22 $(depth)/bin/out/mudela-book --noindex --outdir=$(outdir)/ --outname=$(notdir $@) $<
24 $(outdir)/%.txt: $(outdir)/%.1
25 troff -man -Tascii $< | grotty -b -u -o > $@
27 $(depth)/%.txt: $(outdir)/%.txt
28 cp $< $@
30 # perl 5.003/4
32 POD2HTML5004=$(POD2HTML) --noindex --infile $< --outfile=$@; sh $(depth)/bin/add-URLs.sh $@
34 POD2HTML5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/
37 do_pod2html=$(POD2HTML5003)
40 $(outdir)/%.html: %.pod $(depth)/VERSION
41 $(do_pod2html)
43 $(outdir)/%.5: %.pod
44 $(pod2groff)
46 $(outdir)/%.1: %.pod
47 $(pod2groff)
49 $(outdir)/%.gz: $(outdir)/%
50 gzip -c9 $< > $@
52 name-stem= $(notdir $(basename $<))
54 $(outdir)/%.gif: $(outdir)/%.ps
55 sh $(depth)/bin/ps-to-gifs.sh $<
56 mv $(name-stem)-page*.gif $(outdir)/
57 touch $@
59 $(outdir)/%.ly.txt: $(depth)/input/%.ly
60 ln -f $< $@