diff --git a/sys/purge.sh b/sys/purge.sh index b2661ab74d..49b123b438 100755 --- a/sys/purge.sh +++ b/sys/purge.sh @@ -1,4 +1,10 @@ #!/bin/sh + +MAKE=make +gmake --help >/dev/null 2>&1 +[ $? = 0 ] && MAKE=gmake + + PREFIX="$1" if [ -z "${PREFIX}" ]; then PREFIX=/usr @@ -6,4 +12,4 @@ fi [ -z "${SUDO}" ] && SUDO=sudo echo "Uninstalling r2 from ${PREFIX}..." ./configure --prefix="${PREFIX}" -${SUDO} make purge +${SUDO} ${MAKE} purge