Subject: Re: rebuilding stale .depend files
To: David Laight <david@l8s.co.uk>
From: James Chacon <jmc@NetBSD.org>
List: tech-toolchain
Date: 11/02/2003 22:12:02
On Sun, Nov 02, 2003 at 11:22:26PM +0000, David Laight wrote:
> It gets rather anoying when a build fails because the old
> .depend file references a now deleted file.

I agree here. A build with UPDATE=1 should be able to figure out dependencies
and continue.

> 
> The patch forces the .depend file to be regenerated if any of the
> referenced files has been deleted.
> 
> Note that it has to use exists(file) because .PATH has to be applied.
> (the shell read handles the continuation lines...)
> 
> Thoughts?

How much overhead does this add to a build? i.e. have you measured pre-patch
and post-patch for a static tree?

James