diff --git a/doc/Makefile.am b/doc/Makefile.am
index dc432ac63ecc9b8e660fef7bfc1ce19bd113c36f..2273ab6b639ea2af735766e292ed6755855dec35 100644 (file)
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -10,10 +10,10 @@ CLEANFILES = *.1 *.html *.txt *-dircache RRD?.pod *.pdf *~ core *itemcache *.rej
POD = bin_dec_hex.pod rrddump.pod rrdgraph_examples.pod rrdrestore.pod rrdupdate.pod \
cdeftutorial.pod rrdfetch.pod rrdgraph_graph.pod rrdthreads.pod rrdxport.pod \
- rpntutorial.pod rrdfirst.pod rrdgraph_rpn.pod rrdtool.pod \
- rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod \
- rrdcgi.pod rrdgraph.pod rrdlast.pod \
- rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod
+ rpntutorial.pod rrdfirst.pod rrdgraph_rpn.pod rrdtool.pod rrdcached.pod \
+ rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod rrdflush.pod \
+ rrdcgi.pod rrdgraph.pod rrdlast.pod rrdlastupdate.pod \
+ rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod rrdlua.pod
PMP = RRDs.pod RRDp.pod
PDF = $(MAN:.1=.pdf)
# what should go into the distribution
-EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd
+EXTRA_DIST= $(POD) $(HTML) $(MAN) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd
-# some install rules if the install pat
-DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null && echo "rrdtool-@VERSION@/")
-idocdir = $(prefix)/shared/doc/$(DOCPREFIX)txt
+idocdir = $(RRDDOCDIR)/txt
idoc_DATA = $(POD) $(TXT)
-ihtmldir = $(prefix)/shared/doc/$(DOCPREFIX)html
+ihtmldir = $(RRDDOCDIR)/html
ihtml_DATA = $(HTML)
imandir = $(mandir)/man1
iman_DATA = $(MAN)
perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print <F>; close F} else {print}' $< > $@
.pod.1 .pm.1 .pl.1:
- pod2man --release=$(VERSION) --center=rrdtool $< > $@
+ @POD2MAN@ --release=$(VERSION) --center=rrdtool $< > $@
.1.txt:
- @NROFF@ -man -Tlp $< > $@
+ GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@
.1.pdf:
@TROFF@ -man $< | ps2pdf - $@
.pm.html .pod.html .pl.html:
- pod2html --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
+ @POD2HTML@ --infile=$< --outfile=$@ --noindex --htmlroot=. --podpath=. --title=$*
RRDs.pod:
- ln -s ../bindings/perl-shared/RRDs.pm RRDs.pod
+ $(LN_S) $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod
RRDp.pod:
- ln -s ../bindings/perl-piped/RRDp.pm RRDp.pod
+ $(LN_S) $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod
-index.html:
- rm -f index.html; ln -s rrdtool.html index.html
-
-link: RRDp.pod RRDs.pod index.html
+link: RRDp.pod RRDs.pod
man: $(MAN)
pdf-local: $(PDF)
pod: $(POD)
+
+install-data-hook:
+ cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html