aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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