From 6a634df29088acdc84f365adc9ede2707a165672 Mon Sep 17 00:00:00 2001 From: mux Date: Wed, 6 Nov 2002 17:40:13 +0000 Subject: [PATCH] In the !DEBUG case, we were passing foo.ko two times on the rm -f command line when doing a make clean. Fix this. Reviewed by: ru --- sys/conf/kmod.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 76bdf12fc7e0..497c00db95c3 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -181,7 +181,11 @@ ${_ILINKS}: ${ECHO} ${.TARGET} "->" $$path ; \ ln -s $$path ${.TARGET} -CLEANFILES+= ${PROG} ${FULLPROG} ${KMOD}.kld ${OBJS} ${_ILINKS} symb.tmp tmp.o +CLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} ${_ILINKS} symb.tmp tmp.o + +.if defined(DEBUG) +CLEANFILES+= ${FULLPROG} +.endif .if !target(install)