]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.7
authorfred <fred>
Sun, 24 Mar 2002 19:51:27 +0000 (19:51 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:51:27 +0000 (19:51 +0000)
Documentation/Rules.make

index 77248077993806495a8c257a29e491978e075673..bf32a8d067d03adc15fe3ca997ca85061bc39257 100644 (file)
@@ -23,8 +23,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 +41,20 @@ $(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 
+       (cd $(outdir); \
+       rm lelie.midi ; \
+       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 > $@