Andrew Pimlott writes:

> This isn't accurate.  bar1.h is out of date, but if its rule doesn't
> change its timestamp, so that bar1.h is still older than foo.o,
> foo.o will not be rebuilt.  IOW, make doesn't equate "running its
> rule" with "updating it".

I checked and you are right and I am wrong.  Ouch.  This means that
the "touch" rule is needed for correctness, not just for optimization.

I think GNU Make used to behave the way I described but it certainly
does not now.

So it looks like my skanky workarounds won't work and the fix is to
roll forward to a version of 2.4.NN that Keith Owens has a patch
available for.

Michael C

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to