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