From: Florent Bruneau Date: Mon, 22 Dec 2008 15:28:11 +0000 (+0100) Subject: Add a 'make check' that checks php compilation. X-Git-Tag: xorg/1.0.0~332^2~477 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cef8ceb20d800a21aa438fd40341793131eb092c;p=platal.git Add a 'make check' that checks php compilation. Signed-off-by: Florent Bruneau --- diff --git a/Makefile b/Makefile index fc1550e..958a9b1 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,9 @@ all: build build: core conf banana wiki openid medals jquery +check: + @find . -name '*.php' -exec php -l {} ";" | grep -v 'No syntax errors detected' + q: @echo -e "Code statistics\n" @sloccount $(filter-out wiki/ spool/, $(wildcard */)) 2> /dev/null | egrep '^[a-z]*:' @@ -177,5 +180,5 @@ $(JQUERY_PLUGINS_PATHES): ################################################################################ -.PHONY: build dist clean core wiki build-wiki banana htdocs/images/banana htdocs/css/banana.css include/banana/banana.inc.php http* +.PHONY: build dist clean core wiki build-wiki banana htdocs/images/banana htdocs/css/banana.css include/banana/banana.inc.php http* check