aboutsummaryrefslogtreecommitdiffstats
path: root/xpybar/Makefile
blob: da65a68e3d1c9e76fbf788f06db66c2b10a24fbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.POSIX:

install:
	../check-installed general-preprocessor
	cd config && $(MAKE)
	mkdir -p -- ~/.config
	if test -L ~/.config/xpybar; then \
		test "$$(readlink -- ~/.config/xpybar)" = ~/.dotfiles/xpybar/config; \
	else \
		test ! -e ~/.config/xpybar && \
		ln -s -- ~/.dotfiles/xpybar/config ~/.config/xpybar; \
	fi

uninstall:
	+! ../check-installed xpybar
	-unlink -- ~/.config/xpybar