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.
This commit is contained in:
Peter Wemm 2001-01-22 23:10:01 +00:00
parent 8b2cd62d7d
commit 51dfb94794

View File

@ -371,10 +371,6 @@ KRNLSRCDIR= ${.CURDIR}/sys
KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf
KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR} KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR}
.if !defined(NOCLEAN)
CONFIGARGS+= -r
.endif
BUILDKERNELS= BUILDKERNELS=
INSTALLKERNEL= INSTALLKERNEL=
.for _kernel in ${KERNCONF} .for _kernel in ${KERNCONF}
@ -407,6 +403,10 @@ buildkernel:
cd ${KRNLCONFDIR}; \ cd ${KRNLCONFDIR}; \
PATH=${TMPPATH} \ PATH=${TMPPATH} \
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel} config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
.endif
.if !defined(NOCLEAN) && defined(NO_KERNELDEPEND)
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} clean
.endif .endif
cd ${KRNLOBJDIR}/${_kernel}; \ cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \ MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \