Add purge2, used from sys/purge.sh

This commit is contained in:
pancake 2017-03-10 00:16:01 +01:00
parent c8e11c0828
commit 21abf22bfb
2 changed files with 10 additions and 1 deletions

View File

@ -310,6 +310,15 @@ purge: purge-doc purge-dev user-uninstall
rm -rf "${DESTDIR}${LIBDIR}/radare2"
rm -rf "${DESTDIR}${INCLUDEDIR}/libr"
purge2:
$(MAKE) purge
ifneq ($(PREFIX),/usr)
$(MAKE) purge PREFIX=/usr
endif
ifneq ($(PREFIX),/usr/local)
$(MAKE) purge PREFIX=/usr/local
endif
R2V=radare2-${VERSION}
dist:

View File

@ -12,4 +12,4 @@ fi
[ -z "${SUDO}" ] && SUDO=sudo
echo "Uninstalling r2 from ${PREFIX}..."
./configure --prefix="${PREFIX}"
${SUDO} ${MAKE} purge
${SUDO} ${MAKE} purge2