]> Lady’s Gitweb - Gitweb/commitdiff
gitweb/Makefile: add a $(GITWEB_ALL) variable
authorÆvar Arnfjörð Bjarmason <redacted>
Tue, 28 Jun 2022 10:15:56 +0000 (12:15 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:33 +0000 (00:51 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
Makefile

index e79c2dca2cbff65c6d3a028f1e08c115f2f9dc31e3068270cac9b524c8abde1b..3d6ab034f45985ba8c873dcf878e0a9e26af4b0366da51987041e6e78419c6ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,11 @@ ifneq ($(MAKECMDGOALS),clean)
 -include ../GIT-VERSION-FILE
 endif
 
+# What targets we'll add to 'all' for "make gitweb"
+GITWEB_ALL =
+GITWEB_ALL += gitweb.cgi
+GITWEB_ALL += static/gitweb.js
+
 ### Build rules
 
 SHELL_PATH ?= $(SHELL)
@@ -92,7 +97,7 @@ ifndef V
 endif
 endif
 
-all:: gitweb.cgi static/gitweb.js
+all:: $(GITWEB_ALL)
 
 GITWEB_PROGRAMS = gitweb.cgi
 
This page took 0.231843 seconds and 4 git commands to generate.