on OSX, 'make uninstall' should clean files under /usr/local rather than /usr

This commit is contained in:
Nguyen Anh Quynh 2014-07-22 21:19:02 +08:00
parent 48eb7a6614
commit cf862707d6

View File

@ -82,6 +82,7 @@ function 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)"
export PREFIX=/usr/local
if [ ${PKGCFGDIR}x != x ]; then
${MAKE} PKGCFGDIR=$PKGCFGDIR uninstall
else