build.sh: use list-targets make target

This commit is contained in:
Daniel Frank 2019-08-16 23:23:55 +02:00
parent 44e04d3d9c
commit fbb4b5dc78
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -96,8 +96,7 @@ done
if [ "$auto_targets" = "1" ]; then
# detect available targets
make
targets="$(make | awk '$1 == "*" {print $2}' | sort | xargs)"
targets="$(make list-targets | sort | xargs)"
else
# if a list of build targets has been supplied, only build those
targets="$(echo "${build_targets:-$targets}" | sed -e 's_,_ _g')"