Code

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 b159ffd0ae49c28725de6549132e0ad3a3b69d20..81dafe5ee3308cb3e75986740d6d67f1364f6995 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