ft_nm/build.sh
2019-05-10 18:29:21 +03:00

17 lines
389 B
Bash
Executable file

#!/bin/bash
PWD=$(pwd)
OUT_DIR="$PWD/out"
RELEASE_BLD_DIR="$PWD/bld"
DEBUG_BLD_DIR="$PWD/debug_bld"
TARGET="ft_nm"
meson $RELEASE_BLD_DIR --prefix=$OUT_DIR --libdir=$OUT_DIR --includedir=$OUT_DIR --buildtype=release
meson $DEBUG_BLD_DIR --buildtype=debug
ninja -C $DEBUG_BLD_DIR
ninja -C $RELEASE_BLD_DIR
ninja -C $RELEASE_BLD_DIR install
ln -sf "$OUT_DIR/bin/$TARGET" "$PWD/$TARGET"