* the makefiles should not depend on gnumake features
[rrdtool.git] / examples / Makefile.am
index b10cc2c..747ce3d 100644 (file)
@@ -7,8 +7,7 @@
 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
 
-EXPREFIX:=$(shell echo "@prefix@" | grep rrd >/dev/null || echo "rrdtool-@VERSION@/")
-examplesdir = $(prefix)/$(EXPREFIX)examples
+examplesdir = $(pkgdatadir)/examples
 examples_SCRIPTS = cgi-demo.cgi piped-demo.pl shared-demo.pl \
        stripes.pl bigtops.pl minmax.pl 4charts.pl