diff options
author | matusita <matusita@FreeBSD.org> | 2001-11-15 07:04:23 +0000 |
---|---|---|
committer | matusita <matusita@FreeBSD.org> | 2001-11-15 07:04:23 +0000 |
commit | e4cf28f04441dd374a2c475f4d7fc2f3af832ea4 (patch) | |
tree | 27ac194f8b04ecec730069b3a7e785d12e6ee7ab /Makefile.inc1 | |
parent | 34917066d6cad2ca82026138259b76cb0dfb20bb (diff) | |
download | FreeBSD-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.inc1 | 5 |
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 |