]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
FAST_DEPEND: Don't include depend files when using 'make -V'.
authorbdrewery <bdrewery@FreeBSD.org>
Sun, 8 Nov 2015 00:50:09 +0000 (00:50 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Sun, 8 Nov 2015 00:50:09 +0000 (00:50 +0000)
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

share/mk/bsd.dep.mk
sys/conf/kern.post.mk

index 8cc814dffc3d667e3a118bbaaaad61fa036d7a99..eea818b497566af406ea83fe259a2056c0b32309 100644 (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"
index bf24d17daab3026c2beb158e4ff8e1f5b90cbc24..9252b92857ed948448eecac5d543dd798adec5ae 100644 (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"