summaryrefslogtreecommitdiffstats
path: root/configure
blob: c221a28bfc3a225ce71e67759483895a1685970c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e
# Copyright (c) 2021, Dell Inc. or its subsidiaries.  All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# See the LICENSE file for details.
#
# This file is part of NVMe STorage Appliance Services (nvme-stas).
#
# Authors: Martin Belanger <Martin.Belanger@dell.com>
#
BUILD_DIR="${BUILD_DIR:-.build}"

if [ ! -d ${BUILD_DIR} ]; then
    exec meson ${BUILD_DIR} "$@"
else
    exec meson configure ${BUILD_DIR} "$@"
fi