aboutsummaryrefslogtreecommitdiffstats
path: root/xwallpaper/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xwallpaper/Makefile')
-rw-r--r--xwallpaper/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/xwallpaper/Makefile b/xwallpaper/Makefile
index 739ab7c..fe200a8 100644
--- a/xwallpaper/Makefile
+++ b/xwallpaper/Makefile
@@ -1,21 +1,16 @@
.POSIX:
-include ../common.mk
XINITRC_ORDER = 20
install:
- $(CHECK_INSTALLED) xcman
- $(CHECK_INSTALLED) pdeath
- $(CHECK_INSTALLED) mate-panel
- -$(CHECK_INSTALLED) mate-settings-daemon
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
- test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-xwallpaper
+ 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
-
-.PHONY: install uninstall