]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.4
authorfred <fred>
Sun, 9 Aug 1998 16:21:39 +0000 (16:21 +0000)
committerfred <fred>
Sun, 9 Aug 1998 16:21:39 +0000 (16:21 +0000)
stepmake/stepmake/pod-rules.make [new file with mode: 0644]

diff --git a/stepmake/stepmake/pod-rules.make b/stepmake/stepmake/pod-rules.make
new file mode 100644 (file)
index 0000000..dd5b7cc
--- /dev/null
@@ -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)
+