From: fred Date: Sun, 9 Aug 1998 16:21:39 +0000 (+0000) Subject: lilypond-1.0.4 X-Git-Tag: release/1.5.59~5852 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=398139397a5cfbfd1c306ccb9ccefc975ada4726;p=lilypond.git lilypond-1.0.4 --- diff --git a/stepmake/stepmake/pod-rules.make b/stepmake/stepmake/pod-rules.make new file mode 100644 index 0000000000..dd5b7ccd3d --- /dev/null +++ b/stepmake/stepmake/pod-rules.make @@ -0,0 +1,32 @@ +# Pod_rules.make + +.SUFFIXES: .1 .5 .html .pod .txt + +pod2html=pod2html +pod2groff=pod2man --center="$(PACKAGE_NAME) documentation" --section="0"\ + --release="$(PACKAGE_NAME) $(VERSION)" $< > $@ + + +# perl 5.003/4 +POD2HTML_5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/ || true +# urg, broken. if you must have perl 5004, better install pod2html from 5003 +POD2HTML_5004=$(POD2HTML) --noindex --infile $< --outfile=$@; sh $(depth)/bin/add-URLs.sh $@ + +do_pod2html=$($(POD2HTML_VERSION)) + +$(outdir)/%.html: $(outdir)/%.pod $(depth)/VERSION + $(do_pod2html) + $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@ + +$(outdir)/%.pod: %.pod + cp $< $@ + +$(outdir)/%.5: %.pod + $(pod2groff) + +$(outdir)/%.1: %.pod + $(pod2groff) + +$(outdir)/%.1: $(outdir)/%.pod + -$(pod2groff) +