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

This commit is contained in:
Arkadiusz Hiler
2023-06-05 17:55:10 +03:00
parent de63f8c5f9
commit 5018cb5ab7
+5
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