summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authormatusita <matusita@FreeBSD.org>2001-11-15 07:04:23 +0000
committermatusita <matusita@FreeBSD.org>2001-11-15 07:04:23 +0000
commite4cf28f04441dd374a2c475f4d7fc2f3af832ea4 (patch)
tree27ac194f8b04ecec730069b3a7e785d12e6ee7ab /Makefile.inc1
parent34917066d6cad2ca82026138259b76cb0dfb20bb (diff)
downloadFreeBSD-src-e4cf28f04441dd374a2c475f4d7fc2f3af832ea4.zip
FreeBSD-src-e4cf28f04441dd374a2c475f4d7fc2f3af832ea4.tar.gz
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
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc15
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index c516f24..28bcaa2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -431,9 +431,14 @@ 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 \
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/aicasm/Makefile
OpenPOWER on IntegriCloud