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

Re: integrating make and git

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 15, 2009, 16:20 UTC
Message-ID
<alpine.LNX.1.00.0904151148030.19665@iabervon.org>
In-Reply-To
<3a69fa7c0904150819x7598dea5ic43bf0991c35ae45@mail.gmail.com>
On Wed, 15 Apr 2009, E R wrote:
Show 14 quoted lines
> I have an idea about integrating make with git, and I'm wondering if
> it is a reasonable thing to do.
> 
> First of all, I am under the impression that git can quickly compute a
> hash of a directory and its contents. Is that correct?
> 
> If so, suppose you using git to manage revision control of a project
> which has some components like 'lib1', 'lib2', etc. Typically you
> would perform something like: make clean; make all and 'make all'
> would perform 'make lib1' and 'make lib2'. When checking out a
> different revision of the project you would have to perform another
> 'make clean' before 'make all' since you aren't sure of what's changed
> and the timestamps of the derived files will be more recent than the
> timestamps of the source files.

No, the timestamps of the changed source files will be newer than the timestamps of the derived files. Git doesn't backdate files in working directories, in order to avoid causing the problem you're trying to fix. (And because getting the history is so quick and easy with git that looking at dates on files in the filesystem is kind of pointless.)

	-Daniel
*This .sig left intentionally blank*
Previous: Matthieu MoyNext: E R
Message 3 of 14 in “integrating make and git”
  1. E RApr 15, 2009
  2. Matthieu MoyApr 15, 2009
  3. Daniel BarkalowApr 15, 2009
  4. E RApr 15, 2009
  5. Robin RosenbergApr 15, 2009
  6. Jeff KingApr 16, 2009
  7. Matthieu MoyApr 16, 2009
  8. Nguyen Thai Ngoc DuyApr 16, 2009
  9. Daniel BarkalowApr 15, 2009
  10. John BitoApr 15, 2009
  11. Ben JacksonApr 16, 2009
  12. David KågedalApr 16, 2009
  13. Dmitry PotapovApr 17, 2009
  14. Ealdwulf WuffingaApr 18, 2009

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.