X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2FMakefile.am;h=19f5730dce545d3e80d2e19b6c34217bfeaba7f0;hb=daf9623ffaf9ec95bda440e316d52f04698abee6;hp=189c5c5e9e880bc62c9951b9bd94aeba76bbefac;hpb=1ed31d581dfed23377a61d4df88bb9c2b9b2c94b;p=rrdtool.git diff --git a/doc/Makefile.am b/doc/Makefile.am index 189c5c5..19f5730 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -11,7 +11,7 @@ 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 \ + rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod \ rrdcgi.pod rrdgraph.pod rrdlast.pod \ rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod @@ -24,12 +24,11 @@ HTML = $(POD:.pod=.html) $(PMP:.pod=.html) 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 -idocdir = $(prefix)/doc +idocdir = $(RRDDOCDIR)/txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/html +ihtmldir = $(RRDDOCDIR)/html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN) @@ -43,7 +42,7 @@ all-local: link txt man html-local pod2man --release=$(VERSION) --center=rrdtool $< > $@ .1.txt: - @NROFF@ -man -Tlp $< > $@ + GROFF_NO_SGR=1 @NROFF@ -man -Tlp $< > $@ .1.pdf: @TROFF@ -man $< | ps2pdf - $@ @@ -52,15 +51,12 @@ all-local: link txt man html-local 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) @@ -71,3 +67,6 @@ txt: $(TXT) pdf-local: $(PDF) pod: $(POD) + +install-data-hook: + cd $(DESTDIR)$(ihtmldir) && rm -f index.html && $(LN_S) rrdtool.html index.html