X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FRules.make;h=7e87d4ff6bf100d8c39d09f748563328f01390f2;hb=2862b1027f316a2f0444fa92e441ee28acf7a463;hp=9f1be188b4059e1587c0c1adc8537977d0ccd1ff;hpb=48bdd9154a32245a075494b403639181615864e2;p=lilypond.git diff --git a/Documentation/Rules.make b/Documentation/Rules.make index 9f1be188b4..7e87d4ff6b 100644 --- a/Documentation/Rules.make +++ b/Documentation/Rules.make @@ -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 $@ $< @@ -15,8 +16,7 @@ $(outdir)/%.dvi: $(outdir)/%.mudtex mv $(notdir $@) $(outdir) $(outdir)/%.mudtex: %.doc - $(depth)/bin/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $< - + $(binout)/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $< $(outdir)/%.text: $(outdir)/%.1 groff -man -Tascii $< > $@ @@ -24,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 @@ -37,16 +42,19 @@ $(outdir)/%.1: %.pod $(outdir)/%.gz: $(outdir)/% gzip -c9 $< > $@ -$(outdir)/%.dvi: $(depth)/input/%.ly - (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 > $@