FAST_DEPEND: Don't include depend files when using 'make -V'.

This is especially noticeable in the kernel obj directory since it
includes so many files.

X-MFC-With:	r290433
MFC after:	3 weeks
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
bdrewery 2015-11-08 00:50:09 +00:00
parent 017777b0fc
commit 3406f5f6a5
2 changed files with 4 additions and 0 deletions

View File

@ -62,7 +62,9 @@ DEPEND_CFLAGS+= -MT${.TARGET}
CFLAGS+= ${DEPEND_CFLAGS}
DEPENDOBJS+= ${OBJS} ${POBJS} ${SOBJS}
.for __obj in ${DEPENDOBJS:O:u}
.if ${.MAKEFLAGS:M-V} == ""
.sinclude "${DEPENDFILE}.${__obj}"
.endif
DEPENDFILES_OBJS+= ${DEPENDFILE}.${__obj}
.endfor
.endif # ${MK_FAST_DEPEND} == "yes"

View File

@ -206,7 +206,9 @@ DEPEND_CFLAGS+= -MT${.TARGET}
CFLAGS+= ${DEPEND_CFLAGS}
DEPENDOBJS+= ${SYSTEM_OBJS}
.for __obj in ${DEPENDOBJS:O:u}
.if ${.MAKEFLAGS:M-V} == ""
.sinclude ".depend.${__obj}"
.endif
DEPENDFILES_OBJS+= .depend.${__obj}
.endfor
.endif # ${MK_FAST_DEPEND} == "yes"