]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/Pod_rules.make
patch::: 1.0.3.jcn1: kleine vix
[lilypond.git] / stepmake / stepmake / Pod_rules.make
1 # Pod_rules.make
2
3 .SUFFIXES: .1 .5 .html .pod .txt
4
5 pod2html=pod2html
6 pod2groff=pod2man --center="$(PACKAGE_NAME) documentation" --section="0"\
7         --release="$(PACKAGE_NAME) $(VERSION)" $< > $@
8
9
10 # perl 5.003/4
11 POD2HTML_5003=$(POD2HTML) $< ; mv $(notdir $@) $(outdir)/ || true
12 # urg, broken.  if you must have perl 5004, better install pod2html from 5003
13 POD2HTML_5004=$(POD2HTML) --noindex --infile $< --outfile=$@;  sh $(depth)/bin/add-URLs.sh $@
14
15 do_pod2html=$($(POD2HTML_VERSION))
16
17 $(outdir)/%.html: $(outdir)/%.pod $(depth)/VERSION
18         $(do_pod2html) 
19         $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index $(depth)/../index.html $@
20
21 $(outdir)/%.pod: %.pod
22         cp $< $@
23
24 $(outdir)/%.5: %.pod
25         $(pod2groff)
26
27 $(outdir)/%.1: %.pod
28         $(pod2groff)
29
30 $(outdir)/%.1: $(outdir)/%.pod
31         -$(pod2groff)
32