gitweb/Makefile: add a $(GITWEB_ALL) variable
Declare the targets that the "all" target depends on with a new $(GITWEB_ALL) variable. This will help to reduce churn in subsequent commits. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Jun 28, 2022 at 12:15 UTC
1e08fa5e2bf9cd254a742a0ac3e950a12fc45915
1 file changed
+6
-1
gitweb/Makefile
+6
-1
@@ -54,6 +54,11 @@ ifneq ($(MAKECMDGOALS),clean)
54
-include ../GIT-VERSION-FILE
55
endif
56
57
+# What targets we'll add to 'all' for "make gitweb"
58
+GITWEB_ALL =
59
+GITWEB_ALL += gitweb.cgi
60
+GITWEB_ALL += static/gitweb.js
61
+
62
### Build rules
63
64
SHELL_PATH ?= $(SHELL)
@@ -92,7 +97,7 @@ ifndef V
97
endif
98
endif
99
95
-all:: gitweb.cgi static/gitweb.js
100
+all:: $(GITWEB_ALL)
101
102
GITWEB_PROGRAMS = gitweb.cgi
103