]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/Rules.make
release: 0.1.58
[lilypond.git] / Documentation / Rules.make
index 5ac09affd2a07ff6754ea53b9351100c6f07da75..b8e14d7d8c6924a9da8c2f6b1075dc1138312540 100644 (file)
@@ -1,8 +1,11 @@
 # special rules for the documentation section.
 # There are too many to add to the general rules
 
-.SUFFIXES: .pod .text .1  .html
+.SUFFIXES: .pod .txt .1  .html
 
+pod2html=pod2html
+pod2groff=pod2man --center="LilyPond documentation" --section="0"\
+       --release="LilyPond $(VERSION)" $< > $@
 
 $(outdir)/%.gif: %.xpm
        xpmtoppm $< | ppmtogif > $@
@@ -16,22 +19,26 @@ $(outdir)/%.dvi: $(outdir)/%.mudtex
        mv $(notdir $@) $(outdir)
 
 $(outdir)/%.mudtex: %.doc
-       $(binout)/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $<
+       $(depth)/bin/out/mudela-book --noindex --outdir=$(outdir)/ --outname=$(notdir $@) $<
 
-$(outdir)/%.text: $(outdir)/%.1
-       groff -man -Tascii $< > $@
+$(outdir)/%.txt: $(outdir)/%.1
+       troff -man -Tascii $< | grotty -b -u -o > $@
 
-$(depth)/%.text: $(outdir)/%.text
+$(depth)/%.txt: $(outdir)/%.txt
        cp $< $@
 
-do_pod2html=$(pod2html) $<
+#  perl 5.003/4
+
+POD2HTML5004=$(POD2HTML) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
+
+POD2HTML5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/
+
+
+do_pod2html=$(POD2HTML5003)
+
 
-# do this for perl 5.004
-#       $ make do_pod2html='$(pod2html) --infile $< --outfile=$@' html
-#
 $(outdir)/%.html: %.pod $(depth)/VERSION
        $(do_pod2html) 
-       mv $(notdir $@) $(outdir)/
 
 $(outdir)/%.5: %.pod
        $(pod2groff)
@@ -43,21 +50,11 @@ $(outdir)/%.gz: $(outdir)/%
        gzip -c9 $< > $@
 
 name-stem= $(notdir $(basename $<))
-$(outdir)/%.dvi: $(depth)/input/%.ly 
-       (cd $(outdir); \
-       lilypond -o  $(name-stem)  ../$< )
-       (cd $(outdir); \
-       if [ -f ../$(basename $< ).tex ]; \
-       then \
-               latex ../$(basename $< ) ;\
-       else \
-               tex $(name-stem) ;\
-       fi)
-
-
-# generate the pixmap at twice the size, then rescale (for antialiasing)
+
 $(outdir)/%.gif: $(outdir)/%.ps
-       gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE  $< -c quit |pnmscale 0.5| ppmtogif > $@
+       sh $(depth)/bin/ps-to-gifs.sh $<
+       mv $(name-stem)-page*.gif $(outdir)/
+       touch $@
 
 $(outdir)/%.ly.txt: $(depth)/input/%.ly
        ln -f $< $@