Re: kbuild 2.5 is ready for inclusion in the 2.5 kernel

Keith Owens
2002-05-03T10:42:34Z

On 3 May 2002 10:06:04 GMT,
Gerd Knorr <kraxel@bytesex.org> wrote:
>> Do it with NO_MAKEFILE_GEN=1 for much, much! faster builds.
>
>What exactly is the reason for this hack, i.e. why kbuild wants to
>rebuild the Makefiles every time? Isn't it enougth to do that only
>if .config has been touched?

Or any of the Makefile.in files have changed. Or any of the command
line options have changed. Or various environment variables have
changed. Or a target file has been altered outside kbuild control.
Or the compiler has changed. Or ... the list goes on.

Coding a special case to work out if the existing global makefile can
be reused is horribly error prone. And it would take just as long as
rebuilding the global makefile from scratch.