diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 6c5b31d00f4a..4196bb6f2173 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -158,7 +158,10 @@ _ILINKS=@ machine .MAIN: all all: objwarn ${PROG} all-man _SUBDIR -beforedepend ${OBJS}: ${_ILINKS} +beforedepend: ${_ILINKS} + @rm -f .depend + +${OBJS}: ${_ILINKS} # Search for kernel source tree in standard places. .for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys