]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Rules.make
release: 0.0.77.jcn1
[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 .text .1  .html
5
6
7 $(outdir)/%.xpm: %.gif
8         giftopnm $< | ppmtoxpm > $@
9
10 $(outdir)/%.ps: $(outdir)/%.dvi
11         dvips -o $@ $<
12
13 $(outdir)/%.dvi: $(outdir)/%.mudtex
14         latex '\nonstopmode \input $<'
15         mv $(notdir $@) $(outdir)
16
17 $(outdir)/%.mudtex: %.doc
18         $(depth)/bin/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $<
19
20
21 $(outdir)/%.text: $(outdir)/%.1
22         groff -man -Tascii $< > $@
23
24 $(depth)/%.text: $(outdir)/%.text
25         cp $< $@
26
27 $(outdir)/%.html: %.pod
28         $(pod2html)  $<
29         mv $(notdir $@) $(outdir)/
30
31 $(outdir)/%.5: %.pod
32         $(pod2groff)
33
34 $(outdir)/%.1: %.pod
35         $(pod2groff)
36
37 $(outdir)/%.gz: $(outdir)/%
38         gzip -c9 $< > $@
39
40 $(outdir)/%.dvi: $(depth)/input/%.ly
41         (cd $(outdir); lilypond ../$< ;\
42         if [ -f ../$(basename $< ).tex ]; \
43         then \
44                 latex ../$(basename $< ) ;\
45         else \
46                 tex '\nonstopmode \input lelie' ;\
47                 mv lelie.dvi ../$@ ; \
48         fi)
49
50 # generate the pixmap at twice the size, then rescale (for antialiasing)
51 $(outdir)/%.gif: $(outdir)/%.ps
52         gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE  $< -c quit |pnmscale 0.5| ppmtogif > $@
53
54 $(outdir)/%.ly.txt: $(depth)/input/%.ly
55         ln -f $< $@