build: use gmake on OpenBSD

This commit is contained in:
Lephenixnoir 2021-03-18 14:00:59 +01:00
parent 12ec54c78e
commit d1e489e462
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 15 additions and 2 deletions

View File

@ -14,5 +14,12 @@ else
fi
echo "$TAG Compiling binutils (usually 5-10 minutes)..."
if command -v gmake >/dev/null 2>&1; then
make_command=gmake
else
make_command=make
fi
run_quietly giteapc-build.log \
make -j"$cores"
$make_command -j"$cores"

View File

@ -6,10 +6,16 @@
source util.sh
PREFIX="$1"
if command -v gmake >/dev/null 2>&1; then
make_command=gmake
else
make_command=make
fi
cd build
echo "$TAG Installing to local folder..."
run_quietly giteapc-install.log \
make install-strip
$make_command install-strip
cd ..
# Symbolic link executables to $PREFIX/bin