Re: make install in the brave new build system world

Christoph Hellwig
2010-02-08T10:28:32Z

On Fri, Feb 05, 2010 at 10:48:56PM +1100, Dave Chinner wrote:
> Ah, there's a double depenency chain.
>
> The top level make file has:
>
> install: default
>
> Which causes "make install" to run the top level default target,
> which runs the default target in all the target subdirs.
>
> Then, in each subdir, the makefile has:
>
> install: default
>
> Which when then install target is actually run, does another
> dependency check because it's got a local dependency on the depend
> target via the default target.
>
> Replace the previous patch with the one below and try again.
> Now the "make install" will rebuild targets out of the local
> dependencies rather than a separate run of the top level default
> target (i.e. only traverse directories once).

Thanks, this looks much better. We still don't implement the
quite behaviour for most install targets, but that should be relatively
simple to fix. Maybe we can even replace all those handcode install
rules with generic one - I'll look into that once I get a bit time.

So

Reviewed-by: Christoph Hellwig <hch@lst.de>

for this patch for now.