summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc12
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index b1d33a5..f875070 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -431,7 +431,7 @@ buildkernel:
${KERNCONFDIR}/${_kernel}
.endif
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
-.if defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules)
+.if defined(MODULES_WITH_WORLD) || defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules)
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean
.else
OpenPOWER on IntegriCloud