Up to [cvs.NetBSD.org] / src / usr.bin / make
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: bouyer-quota2-nbase
Revision 1.62 / (download) - annotate - [select for diffs], Sat Nov 27 05:02:35 2010 UTC (13 years, 4 months ago) by sjg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Changes since 1.61: +28 -3
lines
Diff to previous 1.61 (colored)
When a source file moves, make will ignore the stale dependency, but if the file in question is one that needs to be compiled (.c or .cc), it still hands the bogus name to the compiler. If Dir_MTime() cannot find such a file (gn->iParents is not empty), see if the basename can be found via .PATH, and if so set gn->path to the found file. This prevents the stale path being given to the compiler. In meta_oodate(), if a referenced file no longer exists, consider the target out-of-date. Also, if meta_oodate() decides a target is out-of-date, and it it uses .OODATE in its commands, we need .OODATE recomputed. Undo our call to Make_DoAllVar() so that the call from Make_OODate() will do the right thing.