From: oetiker Date: Sat, 11 Jun 2005 06:17:02 +0000 (+0000) Subject: distribute all generated documentation X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3a3f4ee3f39a1b2a3281c2b8291bb4edcd36609b;p=rrdtool.git distribute all generated documentation install in share and not shared drop index.html link git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@631 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/Makefile.am b/doc/Makefile.am index a4de36c..c176fad 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -24,13 +24,13 @@ 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 if the install pat -DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null && echo "rrdtool-@VERSION@/") -idocdir = $(prefix)/shared/doc/$(DOCPREFIX)txt +DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null || echo "rrdtool-@VERSION@/") +idocdir = $(prefix)/share/doc/$(DOCPREFIX)txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/shared/doc/$(DOCPREFIX)html +ihtmldir = $(prefix)/share/doc/$(DOCPREFIX)html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN) @@ -44,7 +44,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 - $@ @@ -58,10 +58,7 @@ RRDs.pod: 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) @@ -72,3 +69,5 @@ txt: $(TXT) pdf-local: $(PDF) pod: $(POD) + +