aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-30 14:55:43 +0100
committerLoïc Minier <lool@dooz.org>2010-01-30 14:55:43 +0100
commit9c6b310b3e895fb0382d907e9bef5dd9fb9c47b9 (patch)
treef9417d055840fbb704eb9c0ad490a7c3d32a8796 /Makefile
parentddfab07b8ab6a450501864a2af5ff720b8cc0c50 (diff)
downloadpbuilder-9c6b310b3e895fb0382d907e9bef5dd9fb9c47b9.tar
pbuilder-9c6b310b3e895fb0382d907e9bef5dd9fb9c47b9.tar.gz
Cleanup check rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 9 insertions, 13 deletions
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