From: Matthias Rampke Date: Wed, 17 Aug 2011 00:26:16 +0000 (+0200) Subject: automatically try to find GNU make X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=commitdiff_plain;h=4de5db93097ff0ada59fc3cf0b8b6072a1e604c0 automatically try to find GNU make --- diff --git a/summon-arm-toolchain b/summon-arm-toolchain index d4c1cef..16ad770 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -141,9 +141,14 @@ else TAR=tar # use the system tar fi -if [ -z MAKE ]; then - MAKE=make - export make # make it known to the configure scripts +if [ -z ${MAKE} ]; then + if which gnumake > /dev/null; then + export MAKE=gnumake + elif which gmake > /dev/null; then + export MAKE=gmake + else + export MAKE=make # should be GNU make + fi fi ##############################################################################