]> git.donarmstrong.com Git - lilypond.git/blob - make/Docrules.make
release: 0.1.63
[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 #$(depth)/%$(DOTTEXT): $(outdir)/%$(DOTTEXT)
24 # urg
25 # $(depth)/%$(DOTTEXT): out/%$(DOTTEXT)
26 #       cp $< $@
27 # huh?
28 $(outdir)/%$(DOTTEXT): $(depth)/%
29         cp $< $@
30
31 #  perl 5.003/4
32 POD2HTML5004=$(POD2HTML) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
33
34 POD2HTML5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/
35
36
37 do_pod2html=$(POD2HTML5004)
38
39
40 $(outdir)/%.html: %.pod $(depth)/VERSION
41         $(do_pod2html) 
42         add-html-footer $@
43
44 $(outdir)/%.5: %.pod
45         $(pod2groff)
46
47 $(outdir)/%.1: %.pod
48         $(pod2groff)
49