#!/usr/bin/env bash
# SPDX-FileCopyrightText: Samsung Electronics Co., Ltd
#
# SPDX-License-Identifier: BSD-3-Clause

set -e
trap 'echo -e "\n\nThis is not a configure-script\n\n" >&2' ERR

echo ""
cat << EOF
================================================================================
                 ---==={[ This is NOT a configure-script ]}=--
================================================================================

 This file is just here for the those with the habit of grabbing a projects
 sources and running:

  ./configure
  make
  make install

 If you are reading this, then you are one of those people, so this is here
 to inform you that xNVMe has switched build-system to meson. Documentation on
 building xNVMe and getting-started is available in the online docs and in the
 repository:

 * https://xnvme.io/docs/latest/getting_started/index.html
 * docs/getting_started/index.rst

 For details on meson, have a look at the documentation:

 * https://mesonbuild.com/Commands.html#setup

 However, even though the build-system is now meson, then a 'Makefile' is still
 here, it is mostly useful for xNVMe developers as it has a bunch of recipies
 for various invocations of the helper-scripts provided in "toolbox/" as well as
 short-hands for invoking meson. Have a look at:

  make help
  make help-verbose

 for more information.

================================================================================
                 ---==={[ This is NOT a configure-script ]}=--
================================================================================
EOF

meson --version || (printf "\n** Please install 'meson' **\n" && exit 1)

exit 0
