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