]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/Rules.make
release: 0.1.11
[lilypond.git] / Documentation / Rules.make
index 77248077993806495a8c257a29e491978e075673..7e87d4ff6bf100d8c39d09f748563328f01390f2 100644 (file)
@@ -4,8 +4,9 @@
 .SUFFIXES: .pod .text .1  .html
 
 
-$(outdir)/%.xpm: %.gif
-       giftopnm $< | ppmtoxpm > $@
+$(outdir)/%.gif: %.xpm
+       xpmtoppm $< | ppmtogif > $@
+
 
 $(outdir)/%.ps: $(outdir)/%.dvi
        dvips -o $@ $<
@@ -23,8 +24,13 @@ $(outdir)/%.text: $(outdir)/%.1
 $(depth)/%.text: $(outdir)/%.text
        cp $< $@
 
-$(outdir)/%.html: %.pod
-       $(pod2html)  $<
+do_pod2html=$(pod2html) $<
+
+# 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
@@ -36,16 +42,19 @@ $(outdir)/%.1: %.pod
 $(outdir)/%.gz: $(outdir)/%
        gzip -c9 $< > $@
 
-$(outdir)/%.dvi: $(depth)/input/%.ly $(lilyout)/lilypond
-       (cd $(outdir); lilypond ../$< ;\
+name-stem= $(notdir $(basename $<))
+$(outdir)/%.dvi: $(depth)/input/%.ly $(depth)/VERSION
+       (cd $(outdir); \
+       lilypond -o  $(name-stem)  ../$< )
+       (cd $(outdir); \
        if [ -f ../$(basename $< ).tex ]; \
        then \
                latex ../$(basename $< ) ;\
        else \
-               tex '\nonstopmode \input lelie' ;\
-               mv lelie.dvi ../$@ ; \
+               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 > $@