Skip to content

Commit 1e08fa5

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7decdb9 commit 1e08fa5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gitweb/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ ifneq ($(MAKECMDGOALS),clean)
5454
-include ../GIT-VERSION-FILE
5555
endif
5656

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+
5762
### Build rules
5863

5964
SHELL_PATH ?= $(SHELL)
@@ -92,7 +97,7 @@ ifndef V
9297
endif
9398
endif
9499

95-
all:: gitweb.cgi static/gitweb.js
100+
all:: $(GITWEB_ALL)
96101

97102
GITWEB_PROGRAMS = gitweb.cgi
98103

0 commit comments

Comments
 (0)