Preserve the make invoked for test, test-extended and valgrind make target
authorTrond Norbye <trond.norbye@sun.com>
Fri, 13 Mar 2009 10:13:13 +0000 (11:13 +0100)
committerTrond Norbye <trond.norbye@sun.com>
Fri, 13 Mar 2009 10:13:13 +0000 (11:13 +0100)
Makefile.am

index b864c31d884e1c021043ef62732769fff632124c..b342d8661ee86d12492909e5205fb1e3e1cb7a27 100644 (file)
@@ -3,13 +3,13 @@ SUBDIRS = docs libmemcached tests support clients
 EXTRA_dist = README.FIRST
 
 test: all
-       cd tests; make test; cd ..
+       @(cd tests; ${MAKE} test)
 
 test-extended: all
-       cd tests; make test-extended; cd ..
+       @(cd tests; ${MAKE} test-extended)
 
 valgrind:
-       cd tests; make valgrind; cd ..
+       @(cd tests; ${MAKE} valgrind)
 
 rpm: all dist
        cp libmemcached-$(VERSION).tar.gz /home/brian/rpm/SOURCES/