aboutsummaryrefslogtreecommitdiff
path: root/build.common
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2014-12-30 13:37:04 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2014-12-30 13:38:11 -0800
commit8538aa259c89f32586a649e5ebc6d99110c34617 (patch)
treeb8e0aa367d8cce47b4ace7ce83ff5531344cbf3b /build.common
parent1eb883d11064b3ef87128cb5a58f015b839b27e3 (diff)
downloadriscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.zip
riscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.tar.gz
riscv-tools-8538aa259c89f32586a649e5ebc6d99110c34617.tar.bz2
Fix broken gmake/make test
Diffstat (limited to 'build.common')
-rw-r--r--build.common8
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}'`