From 243972403bc8b99a02d6c990eca9ae3b125aed6b Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Wed, 9 Oct 2013 17:54:17 +0530 Subject: [PATCH] Use MW_INSTALL_PATH for test path if defined Change-Id: Ib4eedb61f37e3b8a5c834dc417342543771a2d33 --- tests/phpunit/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/Makefile b/tests/phpunit/Makefile index be366553..eabe3a1b 100644 --- a/tests/phpunit/Makefile +++ b/tests/phpunit/Makefile @@ -1,2 +1,10 @@ +ifndef MW_INSTALL_PATH + MW_INSTALL_PATH=../../.. +endif + default: - php ../../../tests/phpunit/phpunit.php . + php ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php . + +.PHONY: *Test.php +*Test.php: + php ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php $@