summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-05 06:19:29 +0000
committerimp <imp@FreeBSD.org>2001-03-05 06:19:29 +0000
commit65426734af885bfd062f33b7cdc6480a986ecd8c (patch)
tree824c124370a0286788ec40be531ebf0134a15bc9
parent93621792202c101127a259f20afeae463ef640ce (diff)
downloadFreeBSD-src-65426734af885bfd062f33b7cdc6480a986ecd8c.zip
FreeBSD-src-65426734af885bfd062f33b7cdc6480a986ecd8c.tar.gz
Move beforedepend: outside of the loop.
# Note: we should remove the rm kludge soon. It fails in many cases. Submitted by: bde
-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