Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
build: include/version.inc.php
build: include/version.inc.php
+test:
+ make -C ut test
+
clean:
-rm include/version.inc.php
clean:
-rm include/version.inc.php
include/version.inc.php: Makefile ChangeLog
echo '<?php define("PLATAL_CORE_VERSION", "${VERSION}"); ?>' > $@
include/version.inc.php: Makefile ChangeLog
echo '<?php define("PLATAL_CORE_VERSION", "${VERSION}"); ?>' > $@
-.PHONY: build dist clean q
+.PHONY: build dist clean q test
--- /dev/null
+files=$(addprefix test-,$(wildcard *.php))
+
+test: $(files)
+ echo "$(files)"
+
+test-%:
+ phpunit $*
+
+.PHONY: test test-%