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

Re: Header files not mentioned in the makefile

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Mar 3, 2008, 18:55 UTC
Message-ID
<20080303185524.GA26790@auto.tuwien.ac.at>
In-Reply-To
<alpine.LSU.1.00.0803031146310.22527@racer.site>
On Mon, Mar 03, 2008 at 11:47:01AM +0000, Johannes Schindelin wrote:
Show 13 quoted lines
> On Mon, 3 Mar 2008, Martin Koegler wrote:
> 
> > When I modified fetch-pack.h I was surprised by the fact, that it does 
> > not result in rebuilding all object files. In fact, no file was rebuilt. 
> > It turned out, that fetch-pack.h was not mentioned in the Makefile.
> > 
> > A quick search (on next) showed, that other header files are also not
> > taking part in dependency checking:
> > 
> > $for a in `ls *.h`; do grep "$a" Makefile >/dev/null || (echo "missing: $a"; grep "$a" *.c|grep include) ; done
> > missing: branch.h
> 
> Somehow I miss "wt-status.h" in your list.
There is a dependency for wt-status.h, so it does not show up in
my grep:
 builtin-revert.o wt-status.o: wt-status.h

But this is complete: $ grep wt-status.h *.c builtin-commit.c:#include "wt-status.h" builtin-revert.c:#include "wt-status.h" wt-status.c:#include "wt-status.h"

mfg Martin Kögler
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 of 4 in “Header files not mentioned in the makefile”
  1. Martin KoeglerMar 3, 2008
  2. Johannes SchindelinMar 3, 2008
  3. Martin KoeglerMar 3, 2008
  4. Junio C HamanoMar 3, 2008

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.