Skip to content

Commit cf6aaff

Browse files
peffgitster
authored andcommitted
check-docs: factor out command-list
The check-docs command list is composed from several Makefile variables plus some special cases. Let's make the meaning of the list more obvious and avoid repeating ourselves by factoring it out. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c6632eb commit cf6aaff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,8 +2804,12 @@ endif
28042804

28052805
### Check documentation
28062806
#
2807+
ALL_COMMANDS = $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS)
2808+
ALL_COMMANDS += git
2809+
ALL_COMMANDS += gitk
2810+
ALL_COMMANDS += gitweb
28072811
check-docs::
2808-
@(for v in $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git gitk gitweb; \
2812+
@(for v in $(ALL_COMMANDS); \
28092813
do \
28102814
case "$$v" in \
28112815
git-merge-octopus | git-merge-ours | git-merge-recursive | \
@@ -2858,7 +2862,7 @@ check-docs::
28582862
documented,gitweb.conf | \
28592863
sentinel,not,matching,is,ok ) continue ;; \
28602864
esac; \
2861-
case " $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git gitk gitweb " in \
2865+
case " $(ALL_COMMANDS) " in \
28622866
*" $$cmd "*) ;; \
28632867
*) echo "removed but $$how: $$cmd" ;; \
28642868
esac; \

0 commit comments

Comments
 (0)