From 9c6b310b3e895fb0382d907e9bef5dd9fb9c47b9 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 30 Jan 2010 14:55:43 +0100 Subject: Cleanup check rules --- Makefile | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 518a3ed..da4a04a 100644 --- a/Makefile +++ b/Makefile @@ -38,23 +38,19 @@ SHELLCODES := pbuilder-buildpackage \ all: +define newline + + +endef + check: # syntax check - set -e; \ - for A in $(SHELLCODES); do \ - bash -n $$A; \ - echo $$A; \ - done + $(foreach script,$(SHELLCODES),bash -n $(script)$(newline)) # testsuite - set -e ; \ - for A in test_*; do \ - bash $$A; \ - done + $(foreach test,$(wildcard ./test_*),$(test)$(newline)) -full-check: - set -e; \ - cd testsuite; \ - ./run-test.sh +full-check: + cd testsuite && ./run-test.sh clean: rm -f *.bak *~ TAGS -- cgit v1.2.3