]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Rules.make
fc9a6198f1ebefd3792ba251beee5455c976d677
[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
7 $(outdir)/%.gif: %.xpm
8         xpmtoppm $< | ppmtogif > $@
9
10
11 $(outdir)/%.ps: $(outdir)/%.dvi
12         dvips -o $@ $<
13
14 $(outdir)/%.dvi: $(outdir)/%.mudtex
15         latex '\nonstopmode \input $<'
16         mv $(notdir $@) $(outdir)
17
18 $(outdir)/%.mudtex: %.doc
19         $(binout)/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $<
20
21 $(outdir)/%.txt: $(outdir)/%.1
22         troff -man -Tascii $< | grotty -b -u -o > $@
23
24 $(depth)/%.txt: $(outdir)/%.txt
25         cp $< $@
26
27 do_pod2html=$(pod2html) $<
28
29 # do this for perl 5.004
30 #        $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
31 #
32 $(outdir)/%.html: %.pod $(depth)/VERSION
33         $(do_pod2html) 
34         mv $(notdir $@) $(outdir)/
35
36 $(outdir)/%.5: %.pod
37         $(pod2groff)
38
39 $(outdir)/%.1: %.pod
40         $(pod2groff)
41
42 $(outdir)/%.gz: $(outdir)/%
43         gzip -c9 $< > $@
44
45 name-stem= $(notdir $(basename $<))
46
47 $(outdir)/%.gif: $(outdir)/%.ps
48         sh $(depth)/bin/ps-to-gifs.sh $<
49         mv $(name-stem)-page*.gif $(outdir)/
50         touch $@
51
52 $(outdir)/%.ly.txt: $(depth)/input/%.ly
53         ln -f $< $@