]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Rules.make
37c33b2b346809f403d1de20d0785be9749c442f
[lilypond.git] / Documentation / Rules.make
1 # special rules for the documentation section.
2 # There are too many to add to the general rules
3
4 .SUFFIXES: .pod .txt .1  .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
14 $(outdir)/%.ps: $(outdir)/%.dvi
15         dvips -o $@ $<
16
17 $(outdir)/%.dvi: $(outdir)/%.mudtex
18         latex '\nonstopmode \input $<'
19         mv $(notdir $@) $(outdir)
20
21 $(outdir)/%.mudtex: %.doc
22         $(binout)/mudela-book --noindex --outdir=$(outdir)/ --outname=$(notdir $@) $<
23
24 $(outdir)/%.txt: $(outdir)/%.1
25         troff -man -Tascii $< | grotty -b -u -o > $@
26
27 $(depth)/%.txt: $(outdir)/%.txt
28         cp $< $@
29
30 #do_pod2html=$(POD2HTML) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
31 # do this for perl 5.003
32
33 do_pod2html=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/
34
35
36 # do this for perl 5.004
37 #        $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
38
39
40 $(outdir)/%.html: %.pod $(depth)/VERSION
41         $(do_pod2html) 
42 #
43
44 $(outdir)/%.5: %.pod
45         $(pod2groff)
46
47 $(outdir)/%.1: %.pod
48         $(pod2groff)
49
50 $(outdir)/%.gz: $(outdir)/%
51         gzip -c9 $< > $@
52
53 name-stem= $(notdir $(basename $<))
54
55 $(outdir)/%.gif: $(outdir)/%.ps
56         sh $(depth)/bin/ps-to-gifs.sh $<
57         mv $(name-stem)-page*.gif $(outdir)/
58         touch $@
59
60 $(outdir)/%.ly.txt: $(depth)/input/%.ly
61         ln -f $< $@