]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Rules.make
dd04ca3604480d61bd53d31935f375902aa23562
[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 --noindex --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) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
28 # do this for perl 5.003
29 #       do_pod2html=$(pod2html) $<
30 #       mv $(notdir $@) $(outdir)/
31
32
33 # do this for perl 5.004
34 #        $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
35
36
37 $(outdir)/%.html: %.pod $(depth)/VERSION
38         $(do_pod2html) 
39 #
40
41 $(outdir)/%.5: %.pod
42         $(pod2groff)
43
44 $(outdir)/%.1: %.pod
45         $(pod2groff)
46
47 $(outdir)/%.gz: $(outdir)/%
48         gzip -c9 $< > $@
49
50 name-stem= $(notdir $(basename $<))
51
52 $(outdir)/%.gif: $(outdir)/%.ps
53         sh $(depth)/bin/ps-to-gifs.sh $<
54         mv $(name-stem)-page*.gif $(outdir)/
55         touch $@
56
57 $(outdir)/%.ly.txt: $(depth)/input/%.ly
58         ln -f $< $@