aboutsummaryrefslogtreecommitdiffstats
path: root/libcontacts/Makefile
blob: 262f283140ee997ee65360cf504030a0e8b45d3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.POSIX:
include ../common.mk

install:
	test -d contacts
	mkdir -p -- ~/.config
	if test ! -L ~/.config/contacts; then \
		test ! -e ~/.config/contacts && \
		ln -sf -- ~/.dotfiles/libcontacts/contacts ~/.config/contacts; \
	else \
		test "$$(readlink -- ~/.config/contacts)" = ~/.dotfiles/libcontacts/contacts; \
	fi

uninstall:
	-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