Fix dependency of common-cmds.h
authorJunio C Hamano <junkio@cox.net>
Thu, 5 Apr 2007 22:03:48 +0000 (15:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 5 Apr 2007 22:03:48 +0000 (15:03 -0700)
Say $(wildcard ...) when we mean it.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile

index b159ffd..81dafe5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -684,7 +684,7 @@ help.o: common-cmds.h
 $(BUILT_INS): git$X
        $(QUIET_BUILT_IN)rm -f $@ && ln git$X $@
 
-common-cmds.h: Documentation/git-*.txt
+common-cmds.h: $(wildcard Documentation/git-*.txt)
        $(QUIET_GEN)./generate-cmdlist.sh > $@+ && mv $@+ $@
 
 $(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh