summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-08 15:11:29 +0000
committerru <ru@FreeBSD.org>2002-04-08 15:11:29 +0000
commit84b61799192ead394633133238b2013f8d2cd5cc (patch)
tree7bdf36693117528c724c5b8811ffa3f04d8bd300 /Makefile.inc1
parent1f9601f664860614fb7b54d7729c03fe5a3f8304 (diff)
downloadFreeBSD-src-84b61799192ead394633133238b2013f8d2cd5cc.zip
FreeBSD-src-84b61799192ead394633133238b2013f8d2cd5cc.tar.gz
Avoid cleaning modules twice in `buildkernel'.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 98df174..f6329c8 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -428,12 +428,11 @@ buildkernel:
${KERNCONFDIR}/${_kernel}
.endif
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
-.if defined(MODULES_WITH_WORLD) || defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules)
cd ${KRNLOBJDIR}/${_kernel}; \
- ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean
-.else
+ ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} -DNO_MODULES clean
+.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules)
cd ${KRNLOBJDIR}/${_kernel}; \
- ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean cleandir
+ ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} cleandir
.endif
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
OpenPOWER on IntegriCloud