Code

make out-of-tree builds possible for the examples directory too.
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:37:22 +0000 (22:37 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 25 Mar 2008 22:37:22 +0000 (22:37 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1312 a5681a0c-68f1-0310-ab6d-d61299d08faa

examples/Makefile.am

index 9e7dc840ec7e443ded94e337d8200d44fa9081f9..62516fddb4e63053bf3cd51da36d3cdd2e016414 100644 (file)
@@ -11,6 +11,6 @@ examples_SCRIPTS = cgi-demo.cgi piped-demo.pl shared-demo.pl \
        stripes.pl bigtops.pl minmax.pl 4charts.pl perftest.pl
 
 cgi-demo.cgi: cgi-demo.cgi.in $(top_builddir)/config.status
-       sed 's,@''exec_prefix@,$(exec_prefix),' cgi-demo.cgi.in > $@
+       sed 's,@''exec_prefix@,$(exec_prefix),' @srcdir@/cgi-demo.cgi.in > $@
        chmod a+x $@