From cef8ceb20d800a21aa438fd40341793131eb092c Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 22 Dec 2008 16:28:11 +0100 Subject: [PATCH] Add a 'make check' that checks php compilation. Signed-off-by: Florent Bruneau --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.1.4