aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 20:05:44 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 20:05:44 +0200
commitb692ae97fa61b8ecab7ffc2d61497b31b439ed01 (patch)
tree5f417ff987829f9353adac95c122225d6af833c8 /xorg-server/Makefile
parentRemove ~/.ssh when ssh is uninstalled (diff)
downloaddotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.gz
dotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.bz2
dotfiles-b692ae97fa61b8ecab7ffc2d61497b31b439ed01.tar.xz
Link ~/.config/backgrounds to ~/.dotfiles/.secrets/backgrounds
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xorg-server/Makefile')
-rw-r--r--xorg-server/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/xorg-server/Makefile b/xorg-server/Makefile
new file mode 100644
index 0000000..126b611
--- /dev/null
+++ b/xorg-server/Makefile
@@ -0,0 +1,16 @@
+.POSIX:
+include ../common.mk
+
+install:
+ if test -L ~/.config/backgrounds; then \
+ test "$$(readlink -- ~/.config/backgrounds)" = ~/.dotfiles/.secrets/backgrounds; \
+ else \
+ test ! -e ~/.config/backgrounds && \
+ ln -sf -- ~/.dotfiles/.secrets/backgrounds ~/.config/backgrounds; \
+ fi
+ mkdir -p -- ../.secrets/backgrounds
+
+uninstall:
+ -unlink -- ~/.config/backgrounds
+
+.PHONY: install uninstall