diff options
author | Ryan Kavanagh <rak@rak.ac> | 2020-12-05 08:52:16 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2020-12-05 08:52:16 -0500 |
commit | be913e3c11dc7e7be204e3103350af3fcb910f44 (patch) | |
tree | aa88a40dad491abc9dc8e676f26e4490ac686d9f | |
parent | More known hosts (diff) |
slighty better make version checking
-rwxr-xr-x | dm | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -11,13 +11,16 @@ fi chmod 600 SUBSTS.local -if [ `uname` = "Linux" ]; then - make --version | grep "GNU Make" > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; } - MAKE=`command -v make` -else - command -v gmake > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; } - MAKE=`command -v gmake` -fi +case `uname` in + Linux|Darwin) + make --version | grep "GNU Make" > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; } + MAKE=`command -v make` + ;; + *) + command -v gmake > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; } + MAKE=`command -v gmake` + ;; +esac ${MAKE} -f Makefile $@ |