configure.sh: Don't allow people to build in the root of the source tree.

This commit is contained in:
Arkadiusz Hiler 2023-03-30 13:53:04 +03:00
parent de63f8c5f9
commit 5018cb5ab7

View File

@ -98,6 +98,11 @@ function configure() {
local srcdir
srcdir="$(dirname "$0")"
if [[ "$srcdir" = "." ]]; then
err "Cannot do a top level in-tree build."
die "Create a subdirectory in build/ or outside of the tree and run configure.sh from there."
fi
# nothing specified, getting the default value from the Makefile to test the
# container engine
if [[ -z $steamrt_image ]]; then