summaryrefslogtreecommitdiffstats
path: root/mkbuild.sh
blob: 9f703211e3636af3caa60d2744a924a0e9b00385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#/bin/sh

h="$(dirname $0)"

mkdir -p "$h/build" || exit
cd "$h/build" || exit

[ "$1" = "-f" ] && { rm -r * 2>/dev/null; shift; }
[ "$1" = "--force" ] && { rm -r * 2>/dev/null; shift; }

cmake \
	-DCMAKE_BUILD_TYPE=Debug \
	-DCMAKE_INSTALL_PREFIX=~/.local \
	..

make -j "$@"