X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2FMakefile.am;h=7396231748fce90af9a3474b13bb75bc118ee7cb;hb=92b77493980c67a4fde8ae001ac4b939210d6a8d;hp=c176fad75d20387730ff8da76a2673f0e8773697;hpb=3a3f4ee3f39a1b2a3281c2b8291bb4edcd36609b;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index c176fad..7396231 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -12,7 +12,7 @@ POD = bin_dec_hex.pod rrddump.pod rrdgraph_examples.pod rrdre 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 \ + rrdcgi.pod rrdgraph.pod rrdlast.pod rrdlastupdate.pod \ rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod @@ -26,11 +26,9 @@ PDF = $(MAN:.1=.pdf) # what should go into the distribution 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)/share/doc/$(DOCPREFIX)txt +idocdir = $(RRDDOCDIR)/txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/share/doc/$(DOCPREFIX)html +ihtmldir = $(RRDDOCDIR)/html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN) @@ -41,7 +39,7 @@ all-local: link txt man html-local perl -n -e 'if (/^=include\s+(\S+)/){open F,"$$1.inc" || die $$?;print ; close F} else {print}' $< > $@ .pod.1 .pm.1 .pl.1: - pod2man --release=$(VERSION) --center=rrdtool $< > $@ + -pod2man --release=$(VERSION) --center=rrdtool $< > $@ .1.txt: GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@ @@ -50,13 +48,13 @@ all-local: link txt man html-local @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 $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod + $(LN_S) $(top_srcdir)/bindings/perl-shared/RRDs.pm RRDs.pod RRDp.pod: - ln -s $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod + $(LN_S) $(top_srcdir)/bindings/perl-piped/RRDp.pm RRDp.pod link: RRDp.pod RRDs.pod @@ -70,4 +68,5 @@ pdf-local: $(PDF) pod: $(POD) - +install-data-hook: + cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html