Leave the `clobber' target alone, it clobbers too much (including

the generated Makefile) to be useful as the cleandir replacement.

Reported by:	des
This commit is contained in:
Ruslan Ermilov 2003-03-03 09:35:44 +00:00
parent 72f455de8d
commit ab404da2f1

View File

@ -11,12 +11,14 @@
.MAIN: all
.for target in all clean cleandepend cleandir depend install obj reinstall tags
.for target in all clean cleandepend cleandir clobber depend install \
obj reinstall tags
${target}: kernel-${target}
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists($S/modules)
${target}: modules-${target}
modules-${target}:
cd $S/modules; ${MKMODULESENV} ${MAKE} ${target:reinstall=install}
cd $S/modules; ${MKMODULESENV} ${MAKE} \
${target:S/^reinstall$/install/:S/^clobber$/cleandir/}
.endif
.endfor
@ -24,7 +26,9 @@ modules-${target}:
kernel-all: ${KERNEL_KO}
kernel-cleandir:
kernel-cleandir: kernel-clean
kernel-clobber:
find . -maxdepth 1 ! -type d ! -name version -delete
kernel-obj: