summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-01-22 23:10:01 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-01-22 23:10:01 +0000
commit51dfb947948447c11778b6c36511ac8723b98ee0 (patch)
treed00f6640d398595bf26d83e075ca36cd118a9632 /Makefile.inc1
parent8b2cd62d7d3d4ecf91f62c9ab5ecc1b6d9858cef (diff)
downloadsrc-test-51dfb947948447c11778b6c36511ac8723b98ee0.tar.gz
src-test-51dfb947948447c11778b6c36511ac8723b98ee0.zip
Use 'make clean' instead of 'config -r', and only if the 'depend' step has
been skipped. We went to a lot of trouble to make the 'blow away' stage unneeded, and it has not been needed for quite some time.
Notes
Notes: svn path=/head/; revision=71397
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc18
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index ff9ef12d71d2c..4fce5edd8ca1c 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -371,10 +371,6 @@ KRNLSRCDIR= ${.CURDIR}/sys
KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf
KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR}
-.if !defined(NOCLEAN)
-CONFIGARGS+= -r
-.endif
-
BUILDKERNELS=
INSTALLKERNEL=
.for _kernel in ${KERNCONF}
@@ -408,6 +404,10 @@ buildkernel:
PATH=${TMPPATH} \
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
.endif
+.if !defined(NOCLEAN) && defined(NO_KERNELDEPEND)
+ cd ${KRNLOBJDIR}/${_kernel}; \
+ ${KMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} clean
+.endif
cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/aicasm/Makefile