summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-02-03 01:32:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2024-02-03 02:41:35 (GMT)
commit4904a4d08cc085716df12ce713ae7ee3d5ecb75a (patch)
tree22ba628d3656f8dace473b5368091f3abb397377
parent799d449105dc1f6e77fa1ebaea4f6d8bdc6537cf (diff)
downloadgit-4904a4d08cc085716df12ce713ae7ee3d5ecb75a.zip
git-4904a4d08cc085716df12ce713ae7ee3d5ecb75a.tar.gz
git-4904a4d08cc085716df12ce713ae7ee3d5ecb75a.tar.bz2
t/Makefile: say the default target upfront
Similar to how 2731d048 (Makefile: say the default target upfront., 2005-12-01) added the default target to the very beginning of the main Makefile to prevent a random rule that happens to be defined first in an included makefile fragments from becoming the default target, protect this Makefile the same way. This started to matter as we started to include config.mak.uname and that included makefile fragment does more than defining Make macros, unfortunately. Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--t/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/Makefile b/t/Makefile
index 281f4c3..2d95046 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -1,3 +1,6 @@
+# The default target of this Makefile is...
+all::
+
# Import tree-wide shared Makefile behavior and libraries
include ../shared.mak
@@ -52,7 +55,7 @@ UNIT_TESTS = $(sort $(filter-out unit-tests/bin/t-basic%,$(UNIT_TEST_PROGRAMS)))
# scripts not to run the external "chainlint.pl" script themselves
CHAINLINTSUPPRESS = GIT_TEST_EXT_CHAIN_LINT=0 && export GIT_TEST_EXT_CHAIN_LINT &&
-all: $(DEFAULT_TEST_TARGET)
+all:: $(DEFAULT_TEST_TARGET)
test: pre-clean check-chainlint $(TEST_LINT)
$(CHAINLINTSUPPRESS) $(MAKE) aggregate-results-and-cleanup