]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/pod-rules.make
release: 1.2.7
[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
20 $(outdir)/%.pod: %.pod
21         cp $< $@
22
23 $(outdir)/%.5: %.pod
24         $(pod2groff)
25
26 $(outdir)/%.1: %.pod
27         $(pod2groff)
28
29 $(outdir)/%.1: $(outdir)/%.pod
30         -$(pod2groff)
31