Run "make cleandir" if NO_MODULES are set, or there is no sys/modules

directory.  Previous commit breaks buildkernel if NO_MODULES was set.
Sorry...

Noticed by: mike
This commit is contained in:
Makoto Matsushita 2001-11-15 07:04:23 +00:00
parent b9efeffff0
commit 6a798cfa81

View File

@ -431,8 +431,13 @@ buildkernel:
${KERNCONFDIR}/${_kernel}
.endif
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
.if defined(NO_MODULES) || !exists(${KRNLSRCDIR}/modules)
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean
.else`
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} clean cleandir
.endif
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \