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
# 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)