summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ct6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ct b/bin/ct
index 6339321..7ab8d2a 100755
--- a/bin/ct
+++ b/bin/ct
@@ -548,6 +548,12 @@ function global_hook {
;;
pre-remove)
exec_hook ${1} pre-remove
+ if [[ -r Makefile ]] {
+ if make -n uninstall &>/dev/null; then
+ info "${1}: running make uninstall\n"
+ make uninstall
+ fi
+ }
genocide_collected ${1}
run_checklinks --remove
list_package_remove ${1}