From: Jeff King Date: Tue, 19 Jun 2012 19:52:29 GMT Subject: Re: [PATCH 2/4] version: add git_user_agent function Message-ID: <20120619195229.GA14692@sigill.intra.peff.net> In-Reply-To: <20120619185916.GA16429@sigill.intra.peff.net> On Tue, Jun 19, 2012 at 02:59:16PM -0400, Jeff King wrote: > > Unless the user manually sets GIT_USER_AGENT, This forces a full rebuild > > due to changed CFLAGS whenever the version changes. Can you make it so > > that only version.o needs to be rebuilt, as with the normal git version > > string? > > Ick, yeah. I had though this was already the case, but it turns out that > it was a peculiarity of my personal config.mak (I set a custom $prefix > based on the branch, and it has a similar problem). I'll see if I can > fix both. Here it is. [1/3]: Makefile: apply dependencies consistently to sparse/asm targets [2/3]: Makefile: split GIT_USER_AGENT from GIT-CFLAGS [3/3]: Makefile: split prefix flags from GIT-CFLAGS Patches go on top of jk/version-string. -Peff