From 99e136befc8113e1ba683bd3a437094b013190e1 Mon Sep 17 00:00:00 2001 From: Ryan Hileman Date: Wed, 30 Mar 2016 20:04:49 -0700 Subject: [PATCH] allow setting PREFIX in make.sh --- make.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index 98cac449..db258df5 100755 --- a/make.sh +++ b/make.sh @@ -51,7 +51,7 @@ install() { rm -rf /usr/lib/libunicorn* rm -rf /usr/include/unicorn # install into /usr/local - PREFIX=/usr/local + PREFIX="${PREFIX-/usr/local}" ${MAKE} install else # not OSX test -d /usr/lib64 && LIBDIRARCH=lib64 @@ -64,7 +64,7 @@ uninstall() { if [ "$UNAME" = "Darwin" ]; then # find the directory automatically, so we can support both Macport & Brew PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)" - PREFIX=/usr/local + PREFIX="${PREFIX-/usr/local}" ${MAKE} uninstall else # not OSX test -d /usr/lib64 && LIBDIRARCH=lib64 @@ -80,7 +80,7 @@ fi if [ -n "`echo "$UNAME" | grep BSD`" ]; then MAKE=gmake - PREFIX=/usr/local + PREFIX="${PREFIX-/usr/local}" fi [ -z "${UNAME}" ] && UNAME=$(uname)