From: oetiker Date: Tue, 3 May 2005 18:10:16 +0000 (+0000) Subject: install documentation into $PREFIX/shared/doc/rrdtool-$VERSION/{txt,html} but X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c78aed26c1a545212e5e1e841ef2b1ef6cee551f;p=rrdtool.git install documentation into $PREFIX/shared/doc/rrdtool-$VERSION/{txt,html} but drop the rrdtool-$VERSION/ bit if $PREFIX matches on rrd assuming that the tool is being installed into a custom directory anyway. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@482 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 189c5c5..e392cfc 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -26,10 +26,11 @@ PDF = $(MAN:.1=.pdf) # what should go into the distribution EXTRA_DIST= $(POD) $(HTML) $(TXT) rrdtool-dump.dtd rrdtool-xport.dtd -# some install rules -idocdir = $(prefix)/doc +# some install rules if the install pat +DOCPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null && echo "rrdtool-@VERSION@/") +idocdir = $(prefix)/shared/doc/$(DOCPREFIX)txt idoc_DATA = $(POD) $(TXT) -ihtmldir = $(prefix)/html +ihtmldir = $(prefix)/shared/doc/$(DOCPREFIX)html ihtml_DATA = $(HTML) imandir = $(mandir)/man1 iman_DATA = $(MAN)