230b7775fe
and minor fixes: . add ack/clean target to lib, 'unify' clean target . add includes as library dependency . mk: exclude warning options clang doesn't have in non-gcc . set -e in lib/*.sh build files . clang compile error circumvention (disable NOASSERTS for release builds)
24 lines
446 B
Bash
Executable file
24 lines
446 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
export SHELL=/bin/sh
|
|
cd /usr/src
|
|
|
|
if [ $# -gt 0 ]
|
|
then make $@
|
|
exit $?
|
|
fi
|
|
|
|
make world
|
|
cd tools
|
|
rm revision
|
|
rm /boot/image/*
|
|
make install
|
|
cp /boot/image/* /boot/image_big # Make big image accessible by this name
|
|
cp ../boot/boot/boot /boot/boot
|
|
cd /usr/src
|
|
if [ $MAKEMAP -ne 0 ]; then
|
|
find . -type f -perm 755 | xargs nm -n 2> /dev/null > symbols.txt
|
|
fi
|
|
make clean
|
|
make cleandepend
|
|
find . -name obj-ack -type d|xargs rm -rf
|