summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 350df22..1c77c0c 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -160,13 +160,14 @@ _ILINKS=@ machine
.MAIN: all
all: objwarn ${PROG} all-man _SUBDIR
+beforedepend: ${_ILINKS}
+ @rm -f .depend
+
# Ensure that the links exist without depending on it when it exists which
# causes all the modules to be rebuilt when the directory pointed to changes.
.for _link in ${_ILINKS}
.if !exists(${.OBJDIR}/${_link})
${OBJS}: ${_link}
-beforedepend: ${_link}
- @rm -f .depend
.endif
.endfor
OpenPOWER on IntegriCloud