diff options
author | joe <joe@FreeBSD.org> | 2000-12-23 16:53:35 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2000-12-23 16:53:35 +0000 |
commit | 356c43e7d53fe6d703d4ef81308dca5145918523 (patch) | |
tree | 82b9fa30aa62634eacc11a34ca1b9a0b2b8733d0 /release | |
parent | caa87cabae8a36ea71af72a25fa9ccfaa2324d97 (diff) | |
download | FreeBSD-src-356c43e7d53fe6d703d4ef81308dca5145918523.zip FreeBSD-src-356c43e7d53fe6d703d4ef81308dca5145918523.tar.gz |
Determine the names of the picobsd releases automatically.
Use the 'realclean' target in the crunch.mk file for cleaning the object
build tree.
Diffstat (limited to 'release')
-rw-r--r-- | release/picobsd/build/Makefile.crunch | 12 | ||||
-rwxr-xr-x | release/picobsd/build/clean | 24 |
2 files changed, 18 insertions, 18 deletions
diff --git a/release/picobsd/build/Makefile.crunch b/release/picobsd/build/Makefile.crunch index 0879ef6..bd99948 100644 --- a/release/picobsd/build/Makefile.crunch +++ b/release/picobsd/build/Makefile.crunch @@ -17,14 +17,10 @@ crunch: clean: - rm -f *.o *.stub *.lo *_stub.c *.mk \ - crunch.cache \ - crunch.mk \ - crunch.c \ - crunch1* \ - crunch \ - .tmp_* \ - *.gz + if [ -f crunch1.mk ]; then \ + make -f crunch1.mk realclean ; \ + fi ; + rm -f crunch1* install: cp crunch1 ${MFS_MOUNTPOINT}/stand/crunch diff --git a/release/picobsd/build/clean b/release/picobsd/build/clean index 371ee64..1947d71 100755 --- a/release/picobsd/build/clean +++ b/release/picobsd/build/clean @@ -5,9 +5,17 @@ # set -e -TARGETS="dial net isp router bridge" +# Get a list of targets. +TARGETS="" +for i in ../* ; do + if [ -d $i -a -f $i/PICOBSD ] ; then + TARGETS="$TARGETS `basename $i`" + fi +done + if [ $# -lt 1 ]; then - echo "What to clean? Possible targets are ${TARGETS} or 'all'" + echo "What to clean?" + echo "Possible targets are:${TARGETS} or 'all'" exit 1 fi @@ -27,16 +35,12 @@ rm -f kernel kernel.gz fs.PICOBSD *.o *core *.db \ cd .. rm -rf help/tmp_hlp echo "===================== $0 tools started ====================" -for i in `ls -d tinyware/[a-z]*` ; do - (cd ${i}; \ - if [ -f Makefile ]; then \ - make clean && make cleandepend;\ - fi) -done for j in $list ; do echo "===================== $0 $j started ======================" (cd ${j}/crunch1; \ - make -f ../../build/Makefile.crunch clean ; \ - ) + if [ -f crunch1.mk ]; then \ + make -f crunch1.mk realclean ; \ + fi ; \ + make -f ../../build/Makefile.crunch clean) echo "=============== $0 $j completed successfuly ==============" done |