Merge branch 'make-prefix' of https://github.com/lunixbochs/unicorn into lunixbochs-make-prefix

This commit is contained in:
Nguyen Anh Quynh 2016-03-31 13:31:24 +08:00
commit ba2023e9bb

View file

@ -51,7 +51,7 @@ install() {
rm -rf /usr/lib/libunicorn* rm -rf /usr/lib/libunicorn*
rm -rf /usr/include/unicorn rm -rf /usr/include/unicorn
# install into /usr/local # install into /usr/local
PREFIX=/usr/local PREFIX="${PREFIX-/usr/local}"
${MAKE} install ${MAKE} install
else # not OSX else # not OSX
test -d /usr/lib64 && LIBDIRARCH=lib64 test -d /usr/lib64 && LIBDIRARCH=lib64
@ -64,7 +64,7 @@ uninstall() {
if [ "$UNAME" = "Darwin" ]; then if [ "$UNAME" = "Darwin" ]; then
# find the directory automatically, so we can support both Macport & Brew # find the directory automatically, so we can support both Macport & Brew
PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)" PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
PREFIX=/usr/local PREFIX="${PREFIX-/usr/local}"
${MAKE} uninstall ${MAKE} uninstall
else # not OSX else # not OSX
test -d /usr/lib64 && LIBDIRARCH=lib64 test -d /usr/lib64 && LIBDIRARCH=lib64
@ -80,7 +80,7 @@ fi
if [ -n "`echo "$UNAME" | grep BSD`" ]; then if [ -n "`echo "$UNAME" | grep BSD`" ]; then
MAKE=gmake MAKE=gmake
PREFIX=/usr/local PREFIX="${PREFIX-/usr/local}"
fi fi
[ -z "${UNAME}" ] && UNAME=$(uname) [ -z "${UNAME}" ] && UNAME=$(uname)