diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 8cc814dffc3d..eea818b49756 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -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" diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index bf24d17daab3..9252b92857ed 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -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"