summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-04-18 13:16:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-19 05:03:24 (GMT)
commit7c3bd713b1f4872e4fc95397e6845b7f9e0b89a5 (patch)
treef9b1c092e453965d115cc779fd2f9862f3fb0c8a /Makefile
parent724d63569fe64944efd1c5a24455a0f578d33cba (diff)
downloadgit-7c3bd713b1f4872e4fc95397e6845b7f9e0b89a5.zip
git-7c3bd713b1f4872e4fc95397e6845b7f9e0b89a5.tar.gz
git-7c3bd713b1f4872e4fc95397e6845b7f9e0b89a5.tar.bz2
check-docs: allow command-list.txt to contain excluded commands
Among other things, the `check-docs` target ensures that `command-list.txt` no longer contains commands that were dropped (or that were never added in the first place). To do so, it compares the list of commands from that file to the commands listed in `$(ALL_COMMANDS)`. However, some build options exclude commands from the latter. Fix the target to handle this situation correctly by taking the just-introduced `$(EXCLUDED_PROGRAMS)` into account. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e7bcfca..d83104d 100644
--- a/Makefile
+++ b/Makefile
@@ -3089,7 +3089,7 @@ check-docs::
-e 's/\.txt//'; \
) | while read how cmd; \
do \
- case " $(patsubst %$X,%,$(ALL_COMMANDS)) " in \
+ case " $(patsubst %$X,%,$(ALL_COMMANDS) $(EXCLUDED_PROGRAMS)) " in \
*" $$cmd "*) ;; \
*) echo "removed but $$how: $$cmd" ;; \
esac; \