aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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