From 89aec45dcc392c2a3772d6eae571b87e48feee33 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 May 2010 22:10:27 +0200 Subject: [PATCH] Simplyfing makefile a bit. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1018daf..eadd5d7 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,14 @@ SHELL := sh -e LANGUAGES = de +SCRIPTS = bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/* + all: test build test: @echo -n "Checking for syntax errors" - @for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \ + @for SCRIPT in $(SCRIPTS); \ do \ sh -n $${SCRIPT}; \ echo -n "."; \ @@ -22,7 +24,7 @@ test: @# We can't just fail yet on bashisms (FIXME) @if [ -x /usr/bin/checkbashisms ]; \ then \ - for SCRIPT in bin/* hooks/* scripts/live scripts/live-functions scripts/live-helpers scripts/*/*; \ + for SCRIPT in $(SCRIPTS); \ do \ checkbashisms $${SCRIPT} || true; \ echo -n "."; \ -- 2.1.4