mirror of https://github.com/ArduPilot/ardupilot
Tools: allow targets to be specified in build_examples.sh
This commit is contained in:
parent
2e8e84ba8b
commit
306dc926ff
|
@ -6,6 +6,12 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
targets="clean all"
|
||||
|
||||
[ $# -gt 0 ] && {
|
||||
targets="$*"
|
||||
}
|
||||
|
||||
export PATH=/usr/lib/ccache:$PATH
|
||||
|
||||
TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}')
|
||||
|
@ -16,8 +22,7 @@ for b in $TESTS; do
|
|||
if [ -r nobuild.txt ]; then
|
||||
echo "Skipping build of $b"
|
||||
else
|
||||
make clean
|
||||
make
|
||||
make $targets
|
||||
fi
|
||||
popd
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue