Add a 'clobber' target.. Like 'clean' but it takes out even the config

generated stuff, leaving only 'version' in the build dir.
This commit is contained in:
Peter Wemm 2001-02-27 08:13:32 +00:00
parent 52bcdc9a38
commit b1fe97412b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73133
5 changed files with 41 additions and 0 deletions

View File

@ -114,6 +114,7 @@ all: ${KERNEL_KO}
depend: kernel-depend
clean: kernel-clean
cleandepend: kernel-cleandepend
clobber: kernel-clobber
tags: kernel-tags
install: kernel-install
install.debug: kernel-install.debug
@ -151,6 +152,9 @@ kernel-clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
kernel-clobber:
find . -type f ! -name version -delete
#lint: /tmp param.c
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
# $S/$M/$M/Locore.c ${CFILES} param.c | \
@ -307,6 +311,8 @@ all: modules
depend: modules-depend
clean: modules-clean
cleandepend: modules-cleandepend
cleandir: modules-cleandir
clobber: modules-clobber
tags: modules-tags
install: modules-install
install.debug: modules-install.debug
@ -332,6 +338,9 @@ modules-clean:
modules-cleandepend:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandepend
modules-clobber: modules-clean
rm -rf ${MKMODULESENV}
modules-cleandir:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandir

View File

@ -119,6 +119,7 @@ all: ${KERNEL_KO}
depend: kernel-depend
clean: kernel-clean
cleandepend: kernel-cleandepend
clobber: kernel-clobber
tags: kernel-tags
install: kernel-install
install.debug: kernel-install.debug
@ -156,6 +157,9 @@ kernel-clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
kernel-clobber:
find . -type f ! -name version -delete
#lint: /tmp param.c
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
# $S/$M/$M/Locore.c ${CFILES} param.c | \
@ -268,6 +272,7 @@ depend: modules-depend
clean: modules-clean
cleandepend: modules-cleandepend
cleandir: modules-cleandir
clobber: modules-clobber
tags: modules-tags
install: modules-install
install.debug: modules-install.debug
@ -293,6 +298,9 @@ modules-clean:
modules-cleandepend:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandepend
modules-clobber: modules-clean
rm -rf ${MKMODULESENV}
modules-cleandir:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandir

View File

@ -129,6 +129,7 @@ all: ${KERNEL_KO}
depend: kernel-depend
clean: kernel-clean
cleandepend: kernel-cleandepend
clobber: kernel-clobber
tags: kernel-tags
install: kernel-install
install.debug: kernel-install.debug
@ -166,6 +167,9 @@ kernel-clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
kernel-clobber:
find . -type f ! -name version -delete
locore.o: $S/$M/$M/locore.s assym.s
${NORMAL_S}
@ -272,6 +276,7 @@ depend: modules-depend
clean: modules-clean
cleandepend: modules-cleandepend
cleandir: modules-cleandir
clobber: modules-clobber
tags: modules-tags
install: modules-install
install.debug: modules-install.debug
@ -297,6 +302,9 @@ modules-clean:
modules-cleandepend:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandepend
modules-clobber: modules-clean
rm -rf ${MKMODULESENV}
modules-cleandir:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandir

View File

@ -121,6 +121,7 @@ all: ${KERNEL_KO}
depend: kernel-depend
clean: kernel-clean
cleandepend: kernel-cleandepend
clobber: kernel-clobber
tags: kernel-tags
install: kernel-install
install.debug: kernel-install.debug
@ -158,6 +159,9 @@ kernel-clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
kernel-clobber:
find . -type f ! -name version -delete
#lint: /tmp param.c
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
# $S/$M/$M/Locore.c ${CFILES} param.c | \
@ -271,6 +275,7 @@ depend: modules-depend
clean: modules-clean
cleandepend: modules-cleandepend
cleandir: modules-cleandir
clobber: modules-clobber
tags: modules-tags
install: modules-install
install.debug: modules-install.debug
@ -297,6 +302,9 @@ modules-clean:
modules-cleandepend:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandepend
modules-clobber: modules-clean
rm -rf ${MKMODULESENV}
modules-cleandir:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandir

View File

@ -119,6 +119,7 @@ all: ${KERNEL_KO}
depend: kernel-depend
clean: kernel-clean
cleandepend: kernel-cleandepend
clobber: kernel-clobber
tags: kernel-tags
install: kernel-install
install.debug: kernel-install.debug
@ -156,6 +157,9 @@ kernel-clean:
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
${CLEAN}
kernel-clobber:
find . -type f ! -name version -delete
#lint: /tmp param.c
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
# $S/$M/$M/Locore.c ${CFILES} param.c | \
@ -268,6 +272,7 @@ depend: modules-depend
clean: modules-clean
cleandepend: modules-cleandepend
cleandir: modules-cleandir
clobber: modules-clobber
tags: modules-tags
install: modules-install
install.debug: modules-install.debug
@ -293,6 +298,9 @@ modules-clean:
modules-cleandepend:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandepend
modules-clobber: modules-clean
rm -rf ${MKMODULESENV}
modules-cleandir:
cd $S/modules ; env ${MKMODULESENV} ${MAKE} cleandir