lilypond-0.1.12
[lilypond.git] / Documentation / Rules.make
blob7e87d4ff6bf100d8c39d09f748563328f01390f2
1 # special rules for the documentation section.
2 # There are too many to add to the general rules
4 .SUFFIXES: .pod .text .1 .html
7 $(outdir)/%.gif: %.xpm
8 xpmtoppm $< | ppmtogif > $@
11 $(outdir)/%.ps: $(outdir)/%.dvi
12 dvips -o $@ $<
14 $(outdir)/%.dvi: $(outdir)/%.mudtex
15 latex '\nonstopmode \input $<'
16 mv $(notdir $@) $(outdir)
18 $(outdir)/%.mudtex: %.doc
19 $(binout)/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $<
21 $(outdir)/%.text: $(outdir)/%.1
22 groff -man -Tascii $< > $@
24 $(depth)/%.text: $(outdir)/%.text
25 cp $< $@
27 do_pod2html=$(pod2html) $<
29 # do this for perl 5.004
30 # $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
32 $(outdir)/%.html: %.pod $(depth)/VERSION
33 $(do_pod2html)
34 mv $(notdir $@) $(outdir)/
36 $(outdir)/%.5: %.pod
37 $(pod2groff)
39 $(outdir)/%.1: %.pod
40 $(pod2groff)
42 $(outdir)/%.gz: $(outdir)/%
43 gzip -c9 $< > $@
45 name-stem= $(notdir $(basename $<))
46 $(outdir)/%.dvi: $(depth)/input/%.ly $(depth)/VERSION
47 (cd $(outdir); \
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)
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 > $@
62 $(outdir)/%.ly.txt: $(depth)/input/%.ly
63 ln -f $< $@