Makefile: add missing dependency for command-list.h
Commit 3ac68a93fd (help: add --config to list all available config - 2018-05-26) makes generate-cmdlist.sh adds a new input source config.txt but it's not a Makefile dependency. Any changes in config.txt will not trigger command-list.h regeneration and the config list in this file becomes outdated. Correct the dependency. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Aug 6, 2018 at 18:34 UTC
5d14258b3694e02392cb24d076d2c7f9cf097f2e
1 file changed
+1
-1
Makefile
+1
-1
@@ -2028,7 +2028,7 @@ $(BUILT_INS): git$X
2028
2029
command-list.h: generate-cmdlist.sh command-list.txt
2030
2031
-command-list.h: $(wildcard Documentation/git*.txt)
2031
+command-list.h: $(wildcard Documentation/git*.txt) Documentation/config.txt
2032
$(QUIET_GEN)$(SHELL_PATH) ./generate-cmdlist.sh command-list.txt >$@+ && mv $@+ $@
2033
2034
SCRIPT_DEFINES = $(SHELL_PATH_SQ):$(DIFF_SQ):$(GIT_VERSION):\