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 -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
targets="clean all"
|
||||||
|
|
||||||
|
[ $# -gt 0 ] && {
|
||||||
|
targets="$*"
|
||||||
|
}
|
||||||
|
|
||||||
export PATH=/usr/lib/ccache:$PATH
|
export PATH=/usr/lib/ccache:$PATH
|
||||||
|
|
||||||
TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}')
|
TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}')
|
||||||
|
@ -16,8 +22,7 @@ for b in $TESTS; do
|
||||||
if [ -r nobuild.txt ]; then
|
if [ -r nobuild.txt ]; then
|
||||||
echo "Skipping build of $b"
|
echo "Skipping build of $b"
|
||||||
else
|
else
|
||||||
make clean
|
make $targets
|
||||||
make
|
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue