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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Aug 8, 2012 at 16:56 UTC cf6aaff3771916e71bac0ced545ec420b768f172
1 file changed +6 -2
Makefile
+6 -2
@@ -2804,8 +2804,12 @@ endif
2804
2805 ### Check documentation
2806 #
2807 +ALL_COMMANDS = $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS)
2808 +ALL_COMMANDS += git
2809 +ALL_COMMANDS += gitk
2810 +ALL_COMMANDS += gitweb
2811 check-docs::
2808 - @(for v in $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git gitk gitweb; \
2812 + @(for v in $(ALL_COMMANDS); \
2813 do \
2814 case "$$v" in \
2815 git-merge-octopus | git-merge-ours | git-merge-recursive | \
@@ -2858,7 +2862,7 @@ check-docs::
2862 documented,gitweb.conf | \
2863 sentinel,not,matching,is,ok ) continue ;; \
2864 esac; \
2861 - case " $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git gitk gitweb " in \
2865 + case " $(ALL_COMMANDS) " in \
2866 *" $$cmd "*) ;; \
2867 *) echo "removed but $$how: $$cmd" ;; \
2868 esac; \