aboutsummaryrefslogtreecommitdiffstats
path: root/xorg-server/Makefile
blob: 126b611ed0878e6b58a691e000e2133ec4363d54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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