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

Re: What's in git.git

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 17, 2006, 18:53 UTC
Message-ID
<Pine.LNX.4.64.0610171141510.3962@g5.osdl.org>
In-Reply-To
<7v64eikdp2.fsf@assigned-by-dhcp.cox.net>
On Tue, 17 Oct 2006, Junio C Hamano wrote:
> 
> Eh, stupid-and-obvious like this perhaps.

I'm not convinced that is enough. You need to make the individual xdiff/*.c files depend on the xdiff/*.h files, because otherwise it will think that the *.o files are up-to-date and just re-link the archive.

The kernel does automatic dependency generation for all the *.c files, and it's _really_ nice. Having to do dependencies by hand is just always going to suck. But the kernel can depend on more things (in particular, the kernel can depend on gcc, and use things like "-MD,$(depfile)" to generate lists of dependencies while building, so that any object file _always_ has the things it depended upn explicitly listed).

But in the absense of those kinds of really clever and powerful tricks, it might be worthwhile to even just have a "mkdepend" scrupt thing and include the end result into the Makefile (we do already depend on GNU make).

That would allow us to get the real dependencies (and minimal! right now we sometimes compile too _much_ just because some of our dependencies are so screwed up and lazy).

			Linus
Previous: Junio C HamanoNext: Andy Whitcroft
Message 7 of 8 in “What's in git.git”
  1. Junio C HamanoOct 17, 2006
  2. Linus TorvaldsOct 17, 2006
  3. add proper dependancies on the xdiff sourceAndy Whitcroft, Oct 17, 2006
  4. Ryan AndersonOct 17, 2006
  5. Davide LibenziOct 17, 2006
  6. Junio C HamanoOct 17, 2006
  7. Linus TorvaldsOct 17, 2006
  8. Andy WhitcroftOct 17, 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.