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:
Bryan Drewery 2015-11-08 00:50:09 +00:00
parent a55d4ddd20
commit 3cccdc9d58
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"