mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Determine the names of the picobsd releases automatically.
Use the 'realclean' target in the crunch.mk file for cleaning the object build tree.
This commit is contained in:
parent
88f811c937
commit
04dbe0f9b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70310
2 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue