diff options
-rw-r--r-- | build.common | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/build.common b/build.common index 23cf589..3ae0424 100644 --- a/build.common +++ b/build.common @@ -9,12 +9,8 @@ then exit 1 fi -if [ ! -f gmake ] -then - MAKE=gmake -else - MAKE=make -fi +# Use gmake instead of make if it exists. +MAKE=`command -v gmake || command -v make` PATH="$RISCV/bin:$PATH" #GCC_VERSION=`gcc -v 2>&1 | tail -1 | awk '{print $3}'` |