Merge branch 'jc/merge-msg' into next
[gitweb.git] / t / Makefile
index 5c76afff83087ee4d6324699f7ba376c18201716..ba6ddbec976f2ea0e4808d6549f93270e0c2b676 100644 (file)
@@ -15,9 +15,18 @@ shellquote = '$(call shq,$(1))'
 
 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
 
-all:
-       @$(foreach t,$T,echo "*** $t ***"; $(call shellquote,$(SHELL_PATH)) $t $(GIT_TEST_OPTS) || exit; )
-       @rm -fr trash
+ifdef NO_PYTHON
+       GIT_TEST_OPTS += --no-python
+endif
+
+all: $(T) clean
+
+$(T):
+       @echo "*** $@ ***"; $(call shellquote,$(SHELL_PATH)) $@ $(GIT_TEST_OPTS)
 
 clean:
        rm -fr trash
+
+.PHONY: $(T) clean
+.NOPARALLEL:
+