From aa09965a6d11f4fe664b7bea8c936cc8e1b7086a Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 18 Mar 2021 14:25:27 +0100 Subject: [PATCH] build: use gmake on OpenBSD --- build.sh | 8 +++++++- install.sh | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index ba5eb65..2b4c356 100755 --- a/build.sh +++ b/build.sh @@ -13,6 +13,12 @@ else cores=$(nproc) fi +if command -v gmake >/dev/null 2>&1; then + make_command=gmake +else + make_command=make +fi + echo "$TAG Compiling gcc (usually 10-20 minutes)..." run_quietly giteapc-build.log \ -make -j"$cores" all-gcc all-target-libgcc +$make_command -j"$cores" all-gcc all-target-libgcc diff --git a/install.sh b/install.sh index 4600bb9..970a11a 100755 --- a/install.sh +++ b/install.sh @@ -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-gcc install-strip-target-libgcc +$make_command install-strip-gcc install-strip-target-libgcc cd .. # Symbolic link executables to $PREFIX/bin