diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-12-30 13:37:04 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2014-12-30 13:38:11 -0800 |
commit | 8538aa259c89f32586a649e5ebc6d99110c34617 (patch) | |
tree | b8e0aa367d8cce47b4ace7ce83ff5531344cbf3b | |
parent | 1eb883d11064b3ef87128cb5a58f015b839b27e3 (diff) | |
download | riscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.zip riscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.tar.gz riscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.tar.bz2 |
Fix broken gmake/make test
-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}'` |