git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] perl bindings fix compilation errors

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 26, 2006, 08:34 UTC
Message-ID
<Pine.LNX.4.63.0609261031430.25371@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vfyeftehf.fsf@assigned-by-dhcp.cox.net>
Hi,
On Mon, 25 Sep 2006, Junio C Hamano wrote:
Show 5 quoted lines
> 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
 
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “perl bindings fix compilation errors”
  1. perl bindings fix compilation errorsAndy Whitcroft, Sep 25, 2006
  2. Johannes SchindelinSep 25, 2006
  3. Andy WhitcroftSep 25, 2006
  4. Johannes SchindelinSep 25, 2006
  5. Junio C HamanoSep 26, 2006
  6. Johannes SchindelinSep 26, 2006
  7. Junio C HamanoSep 27, 2006
  8. Johannes SchindelinSep 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.