1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-22 07:06:48 +02:00
mu/autogen.sh
Dirk-Jan C. Binnema 88f5f92b72 build: fix macos/clang build (disable guile)
error: invalid argument '-std=gnu11' not allowed with 'C++'
2021-10-18 22:31:44 +03:00

31 lines
676 B
Bash
Executable File

#!/bin/sh
# Run this to generate all the initial makefiles, etc.
echo "*** meson build setup"
test -f mu/mu.cc || {
echo "*** Run this script from the top-level mu source directory"
exit 1
}
BUILDDIR=build
command -v meson 2> /dev/null
if [ $? != 0 ]; then
echo "*** No meson found, please install it ***"
exit 1
fi
# we could remove build/ but let's avoid rm -rf risks...
if test -d ${BUILDDIR}; then
meson --reconfigure ${BUILDDIR} $@
else
meson ${BUILDDIR} $@
fi
# Add a Makefile with some useful target
cp Makefile.meson Makefile
echo "*** Now run 'ninja -C ${BUILDDIR}' to build mu"
echo "*** Or check the Makefile for some useful targets"