aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libcontacts/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcontacts/Makefile b/libcontacts/Makefile
index 1f246e3..262f283 100644
--- a/libcontacts/Makefile
+++ b/libcontacts/Makefile
@@ -12,6 +12,10 @@ install:
fi
uninstall:
- -unlink -- ~/.config/contacts
+ -if ! $(CHECK_INSTALLED) libcontacts 2>/dev/null && \
+ ! $(CHECK_INSTALLED) libcontacts-glibc 2>/dev/null && \
+ ! $(CHECK_INSTALLED) libcontacts-musl 2>/dev/null; then \
+ unlink -- ~/.config/contacts; \
+ fi
.PHONY: install uninstall