@echo "=========================================================================="
@$(MAKE) -f Makefile.$(DIST)
-check:
+check: testdepends
## To run test in verbose mode :
#cd tests ; phpunit --verbose unit; phpunit --verbose code;
cd tests ; php AllTests.php | perl -p -e '$$e=1 if /FAILURE/ ; END { exit 1 if $$e }'
-checkfull:
+checkfull: testdepends
## To run test in verbose mode :
#cd tests ; phpunit --verbose unit; phpunit --verbose code; phpunit --verbose build
cd tests ; php AllFullTests.php
depends: dpkg-dev dpkg-parsechangelog
+testdepends: phpunit php-htmlpurifier pcregrep
+
dpkg-dev:
@[ -f /usr/bin/dpkg-architecture ] || (echo "You need to install $@ package" ; exit 1)
sed -e 's/@@VERSION@@/$(version)/g' < src/fusionforge.spec > $(RPM_TMP)/SPECS/fusionforge.spec
$(RPMBUILD) -bb $(RPM_TMP)/SPECS/fusionforge.spec 2>&1| grep -v '/etc/magic'
+testdepends:
+ @echo "TODO: Makefile.rh $@"
+
3rd-party:
$(MAKE) -C 3rd-party -f Makefile.rh BUILDRESULT=$(BUILDRESULT) all