From: Tobias Oetiker Date: Sat, 11 Jun 2005 06:14:25 +0000 (+0000) Subject: install examples in an rrdtool specific subdirectory if the prefix does not contain... X-Git-Tag: 1.2.10~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d9f54a651835081c74631c512d137efcb13eb93;p=thirdparty%2Frrdtool-1.x.git install examples in an rrdtool specific subdirectory if the prefix does not contain rrd -- Peter Breitenlohner git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@630 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/examples/Makefile.am b/examples/Makefile.am index 258173b1..b10cc2c3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -7,7 +7,8 @@ EXTRA_DIST = cgi-demo.cgi.in piped-demo.pl.in shared-demo.pl.in \ stripes.pl.in bigtops.pl.in minmax.pl.in 4charts.pl.in -examplesdir = $(prefix)/examples +EXPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null || echo "rrdtool-@VERSION@/") +examplesdir = $(prefix)/$(EXPREFIX)examples examples_SCRIPTS = cgi-demo.cgi piped-demo.pl shared-demo.pl \ stripes.pl bigtops.pl minmax.pl 4charts.pl