FAST_DEPEND: Fix 'make all install' not properly rebuilding based on .depend.* files.
authorbdrewery <bdrewery@FreeBSD.org>
Tue, 23 Aug 2016 19:37:18 +0000 (19:37 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Tue, 23 Aug 2016 19:37:18 +0000 (19:37 +0000)
commit7782c2dc968ca6819454736c9394c7de8b5dd6ea
tree65ba62a947ff76e859e56a31f695d4c49b1b7c51
parentcb0b718c022606da27fec67f7fe3933deda926fd
FAST_DEPEND: Fix 'make all install' not properly rebuilding based on .depend.* files.

An optimization is in place to skip reading the .depend.* files with
'make install'.  This was too strong and broke 'make all install' and
'make foo.o foo install'.  Now only skip reading the dependency files
if all make targets ran are install targets.

The problem comes about because headers are only added in as a guessed
dependency if .depend.* files do not yet exist.  If they do exist, even
if being skipped from being read, then the header dependencies are not
applied.  This applies to all #included files, and not just headers.

Reported by: kib
MFC after: 1 day
Sponsored by: EMC / Isilon Storage Division
share/mk/bsd.dep.mk
sys/conf/kern.post.mk