Skip to content

Commit 4904a4d

Browse files
committed
t/Makefile: say the default target upfront
Similar to how 2731d04 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 799d449 commit 4904a4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# The default target of this Makefile is...
2+
all::
3+
14
# Import tree-wide shared Makefile behavior and libraries
25
include ../shared.mak
36

@@ -52,7 +55,7 @@ UNIT_TESTS = $(sort $(filter-out unit-tests/bin/t-basic%,$(UNIT_TEST_PROGRAMS)))
5255
# scripts not to run the external "chainlint.pl" script themselves
5356
CHAINLINTSUPPRESS = GIT_TEST_EXT_CHAIN_LINT=0 && export GIT_TEST_EXT_CHAIN_LINT &&
5457

55-
all: $(DEFAULT_TEST_TARGET)
58+
all:: $(DEFAULT_TEST_TARGET)
5659

5760
test: pre-clean check-chainlint $(TEST_LINT)
5861
$(CHAINLINTSUPPRESS) $(MAKE) aggregate-results-and-cleanup

0 commit comments

Comments
 (0)