aboutsummaryrefslogtreecommitdiffstats
path: root/xpybar/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 13:18:37 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 13:18:37 +0200
commit3e21f6d13c0a70db95fec8b5a71b758223ff4293 (patch)
tree6d6d2eddb243935007ce1e316c61470224f93df0 /xpybar/Makefile
parentAdd inputrc for readline + m (diff)
downloaddotfiles-3e21f6d13c0a70db95fec8b5a71b758223ff4293.tar.gz
dotfiles-3e21f6d13c0a70db95fec8b5a71b758223ff4293.tar.bz2
dotfiles-3e21f6d13c0a70db95fec8b5a71b758223ff4293.tar.xz
Add xpybar
Signed-off-by: Mattias Andrée <maandree@kth.se>
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