aboutsummaryrefslogtreecommitdiffstats
path: root/xpybar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xpybar/Makefile')
-rw-r--r--xpybar/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/xpybar/Makefile b/xpybar/Makefile
new file mode 100644
index 0000000..6d0d753
--- /dev/null
+++ b/xpybar/Makefile
@@ -0,0 +1,18 @@
+.POSIX:
+include ../common.mk
+
+install:
+ $(CHECK_INSTALLED) general-preprocessor
+ make -C config
+ 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:
+ -unlink -- ~/.config/xpybar
+
+.PHONY: install uninstall