diff --git a/build.sh b/build.sh index 9b2f6d1..3d1cf35 100755 --- a/build.sh +++ b/build.sh @@ -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" diff --git a/install.sh b/install.sh index 887ff58..1e3d699 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 +$make_command install-strip cd .. # Symbolic link executables to $PREFIX/bin