Hi, On Mon, 25 Sep 2006, Junio C Hamano wrote: > It is certainly incorrect to say that it is a driver error to > git-pull (or git-checkout to switch branches) without running > "make clean" first to get rid of perl/Git.c while your Makefile > still knows it is a generated file. Our Makefile should be more > helpful. How about this: diff --git a/Makefile b/Makefile index d3310ae..a722c5a 100644 --- a/Makefile +++ b/Makefile @@ -612,7 +612,14 @@ ### Build rules all: $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk gitweb/gitweb.cgi \ git-merge-recur$X -all: perl/Makefile +# work around for left-over files +.PHONY: perl/check-left-over + +perl/check-left-over: + (test -f perl/Git.c && test ! -f perl/Git.xs \ + && rm perl/{Git.c,Git.bs,Makefile}) || true + +all: perl/check-left-over perl/Makefile $(MAKE) -C perl $(MAKE) -C templates - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html