From b692ae97fa61b8ecab7ffc2d61497b31b439ed01 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 20:05:44 +0200 Subject: Link ~/.config/backgrounds to ~/.dotfiles/.secrets/backgrounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- xorg-server/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 xorg-server/Makefile 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 -- cgit v1.2.3-70-g09d2