aboutsummaryrefslogtreecommitdiff
path: root/contrib/diff-highlight
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-02-25 14:19:36 -0800
committerJunio C Hamano <gitster@pobox.com>2025-02-25 14:19:36 -0800
commit092180990de06a9be1b3d662c7e46eccceb24bb1 (patch)
treee75849dff60e5072037ab2d9d508e3017b431c85 /contrib/diff-highlight
parent9b07c152dfce52663795fe9b4e1ed5626bfda455 (diff)
parent5309c1e9fb399c390ed36ef476e91f76f6746fa9 (diff)
downloadgit-092180990de06a9be1b3d662c7e46eccceb24bb1.tar.xz
Merge branch 'ad/set-default-target-in-makefiles'
Correct the default target in Documentation/Makefile, and future-proof all Makefiles from similar breakages by declaring the default target (which happens to be "all") upfront. * ad/set-default-target-in-makefiles: Makefile: set default goals in makefiles
Diffstat (limited to 'contrib/diff-highlight')
-rw-r--r--contrib/diff-highlight/Makefile3
-rw-r--r--contrib/diff-highlight/t/Makefile5
2 files changed, 6 insertions, 2 deletions
diff --git a/contrib/diff-highlight/Makefile b/contrib/diff-highlight/Makefile
index f2be7cc924..33c2ccc9f7 100644
--- a/contrib/diff-highlight/Makefile
+++ b/contrib/diff-highlight/Makefile
@@ -1,4 +1,5 @@
-all: diff-highlight
+# The default target of this Makefile is...
+all:: diff-highlight
PERL_PATH = /usr/bin/perl
-include ../../config.mak
diff --git a/contrib/diff-highlight/t/Makefile b/contrib/diff-highlight/t/Makefile
index 5ff5275496..2a98541477 100644
--- a/contrib/diff-highlight/t/Makefile
+++ b/contrib/diff-highlight/t/Makefile
@@ -1,3 +1,6 @@
+# The default target of this Makefile is...
+all::
+
-include ../../../config.mak.autogen
-include ../../../config.mak
@@ -6,7 +9,7 @@ SHELL_PATH ?= $(SHELL)
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
-all: test
+all:: test
test: $(T)
.PHONY: help clean all test $(T)