]> git.donarmstrong.com Git - lilypond.git/blob - make/Docrules.make
release: 0.1.64
[lilypond.git] / make / Docrules.make
1 # special rules for the documentation section.
2 # There are too many to add to the general rules
3
4 .SUFFIXES: .pod .1 $(DOTTEXT) .html
5
6 pod2html=pod2html
7 pod2groff=pod2man --center="LilyPond documentation" --section="0"\
8         --release="LilyPond $(VERSION)" $< > $@
9
10 $(outdir)/%.gif: %.xpm
11         xpmtoppm $< | ppmtogif > $@
12
13 $(outdir)/%.dvi: $(outdir)/%.mudtex
14         latex '\nonstopmode \input $<'
15         mv $(notdir $@) $(outdir)
16
17 $(outdir)/%.mudtex: %.doc
18         $(depth)/bin/out/mudela-book  --outdir=$(outdir)/ --outname=$(notdir $@) $<
19
20 $(outdir)/%$(DOTTEXT): $(outdir)/%.1
21         troff -man -Tascii $< | grotty -b -u -o > $@
22
23 #  perl 5.003/4
24 POD2HTML5004=$(POD2HTML) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
25
26 POD2HTML5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/
27
28 # we'll set pod2html5004 to default (hopefully), for now,
29 # because almost everybody has that version.
30 # 5004's pod2hmtl is broken, though; you should use pod2html of 5003
31 do_pod2html=$(POD2HTML5004)
32 # do_pod2html=$(POD2HTML5003)
33
34 $(outdir)/%.html: %.pod $(depth)/VERSION
35         $(do_pod2html) 
36         add-html-footer $@
37
38 $(outdir)/%.html: %.data $(depth)/VERSION
39         table-to-html $< $@
40         add-html-footer $@
41
42 $(outdir)/%.5: %.pod
43         $(pod2groff)
44
45 $(outdir)/%.1: %.pod
46         $(pod2groff)
47