aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 20:34:07 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 20:34:07 +0200
commit9206039086b841fa5ac8fcca301d63ac691f5339 (patch)
treed55a7e1e0bec897237988f8b41b58185730d8b30 /libcontacts/Makefile
parentCreate ~/.var/opt and move ~/.var/{element,signal,wire} into ~/.var/opt (diff)
downloaddotfiles-9206039086b841fa5ac8fcca301d63ac691f5339.tar.gz
dotfiles-9206039086b841fa5ac8fcca301d63ac691f5339.tar.bz2
dotfiles-9206039086b841fa5ac8fcca301d63ac691f5339.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
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