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

Re: [PATCH/RFC] "Recursive Make considered harmful"

From
Petr Baudis <pasky@suse.cz>
Date
Jul 29, 2005, 07:46 UTC
Message-ID
<20050729074614.GF24895@pasky.ji.cz>
In-Reply-To
<20050729073134.GA6507@mars.ravnborg.org>

Dear diary, on Fri, Jul 29, 2005 at 09:31:34AM CEST, I got a letter where Sam Ravnborg <sam@ravnborg.org> told me that...

Show 11 quoted lines
> > > While I do not have strong objections to make the build process
> > > go faster, it is somewhat disturbing that the Makefile pieces
> > > maintained in subdirectories need to name things they touch
> > > using paths that include the subdirectory names.  I do not have
> > > a better alternative to suggest, though...
> 
> If the goal is to speed up the build process the only sane way is to fix
> the dependencies. In kbuild fixdep is used to parse the .c file and it
> locates all references to .h files (recursive) and also detects any
> usage of CONFIG_ symbols.
> This part should be relative straightforward to include in git.

FWIW, I made tiny "build system" (inspired by kconfig) for smaller projects I work on:

http://pasky.or.cz/~pasky/dev/tunneler/co/Makefile http://pasky.or.cz/~pasky/dev/tunneler/co/Makefile.lib http://pasky.or.cz/~pasky/dev/tunneler/co/client/Makefile

Perhaps someone might find that a nice base for further hacking. It generally appears to work pretty well in practice, although the automatic dependency tracking might not be perfect.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Sam RavnborgNext: Timo Hirvonen
Message 15 of 16 in “"Recursive Make considered harmful"”
  1. "Recursive Make considered harmful"Ryan Anderson, Jul 27, 2005
  2. A Large Angry SCMJul 27, 2005
  3. Kirby C. BohlingJul 27, 2005
  4. A Large Angry SCMJul 27, 2005
  5. Junio C HamanoJul 27, 2005
  6. A Large Angry SCMJul 27, 2005
  7. Petr BaudisJul 28, 2005
  8. Matthias UrlichsJul 28, 2005
  9. Junio C HamanoJul 28, 2005
  10. Matthias UrlichsJul 28, 2005
  11. Junio C HamanoJul 28, 2005
  12. A Large Angry SCMJul 28, 2005
  13. Ryan AndersonJul 29, 2005
  14. Sam RavnborgJul 29, 2005
  15. Petr BaudisJul 29, 2005
  16. Timo HirvonenJul 29, 2005

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.