]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/Rules.make
release: 0.1.7
[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 do_pod2html=$(pod2html) $<
27
28 # do this for perl 5.004
29 #        $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
30 #
31 $(outdir)/%.html: %.pod $(depth)/VERSION
32         $(do_pod2html) 
33         mv $(notdir $@) $(outdir)/
34
35 $(outdir)/%.5: %.pod
36         $(pod2groff)
37
38 $(outdir)/%.1: %.pod
39         $(pod2groff)
40
41 $(outdir)/%.gz: $(outdir)/%
42         gzip -c9 $< > $@
43
44 name-stem= $(notdir $(basename $<))
45 $(outdir)/%.dvi: $(depth)/input/%.ly 
46         (cd $(outdir); \
47         rm lelie.midi ; \
48         lilypond -o  $(name-stem)  ../$< )
49         (cd $(outdir); \
50         if [ -f ../$(basename $< ).tex ]; \
51         then \
52                 latex ../$(basename $< ) ;\
53         else \
54                 tex $(name-stem) ;\
55         fi)
56
57
58 # generate the pixmap at twice the size, then rescale (for antialiasing)
59 $(outdir)/%.gif: $(outdir)/%.ps
60         gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE  $< -c quit |pnmscale 0.5| ppmtogif > $@
61
62 $(outdir)/%.ly.txt: $(depth)/input/%.ly
63         ln -f $< $@