Skip to content
Snippets Groups Projects
Commit 620fcc7d authored by Bård Skaflestad's avatar Bård Skaflestad Committed by Christoph Grüninger
Browse files

[dunecontrol] Allow nested build directories

This commit implements support for using nested build directories of
the form

    (o) build/sequential/debug/cmake/clang
    (o) build/parallel/release/autotools/gcc

in addition to the separate build directory feature that already
existed.  This enables confining multiple build configurations to a
single subdirectory of each module's directory to avoid otherwise
littering the module directory.

Note: Using "mkdir -p" presumes a SUS v3 mkdir(1) utility.
parent eec570f0
No related branches found
No related tags found
No related merge requests found
......@@ -664,7 +664,7 @@ run_default_configure () {
fi
done
# create build directory if requested
test -d "$BUILDDIR" || mkdir "$BUILDDIR"
test -d "$BUILDDIR" || mkdir -p "$BUILDDIR"
SRCDIR="$PWD"
cd "$BUILDDIR"
echo "$PREPARAMS $CMAKE -DCMAKE_MODULE_PATH=\"$CMAKE_MODULE_PATH\" $CMAKE_PARAMS $CMAKE_FLAGS \"$SRCDIR\""
......@@ -674,7 +674,7 @@ run_default_configure () {
echo ./configure "$PARAMS"
# create build directory if requested
if test -n "$BUILDDIR"; then
test -d "$BUILDDIR" || mkdir "$BUILDDIR"
test -d "$BUILDDIR" || mkdir -p "$BUILDDIR"
SRCDIR="$PWD"
cd "$BUILDDIR"
eval "$SRCDIR/configure" "$PARAMS" || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment