From 65426734af885bfd062f33b7cdc6480a986ecd8c Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 5 Mar 2001 06:19:29 +0000 Subject: Move beforedepend: outside of the loop. # Note: we should remove the rm kludge soon. It fails in many cases. Submitted by: bde --- sys/conf/kmod.mk | 5 +++-- 1 file 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 -- cgit v1.1