aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server/Makefile
blob: 81bc9d8de3473dc56ba86360a7c79c76c53f17f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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
	if test ! -L ~/.config/background && test ! -e ~/.config/background; then \
		ln -s backgrounds/default ~/.config/background; \
	fi

uninstall:
	-unlink -- ~/.config/backgrounds
	-unlink -- ~/.config/background

.PHONY: install uninstall