aboutsummaryrefslogtreecommitdiffstats
path: root/xwallpaper/Makefile
blob: fe200a8e48cce5258f1857857ce3709a95387997 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.POSIX:

XINITRC_ORDER = 20

install:
	mkdir -p -- ~/.config/X11/xinit/xinitrc.d
	test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper || \
		test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
	ln -sf -- ~/.dotfiles/xwallpaper/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper

uninstall:
	+! ../check-installed xwallpaper
	-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
	-rmdir -- ~/.config/X11/xinit/xinitrc.d
	-rmdir -- ~/.config/X11/xinit
	-rmdir -- ~/.config/X11