aboutsummaryrefslogtreecommitdiffstats
path: root/dconf
diff options
context:
space:
mode:
Diffstat (limited to '')
l---------dconf-cli1
-rw-r--r--dconf/Makefile8
2 files changed, 5 insertions, 4 deletions
diff --git a/dconf-cli b/dconf-cli
new file mode 120000
index 0000000..69f7f16
--- /dev/null
+++ b/dconf-cli
@@ -0,0 +1 @@
+dconf \ No newline at end of file
diff --git a/dconf/Makefile b/dconf/Makefile
index 41b756a..b98a8ae 100644
--- a/dconf/Makefile
+++ b/dconf/Makefile
@@ -1,17 +1,17 @@
.POSIX:
-include ../common.mk
XINITRC_ORDER = 10
install:
mkdir -p -- ~/.config/X11/xinit/xinitrc.d
- test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-dconf
+ test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-dconf || \
+ test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-dconf
ln -sf -- ~/.dotfiles/dconf/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-dconf
uninstall:
+ +! ../check-installed dconf
+ +! ../check-installed dconf-cli
-unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-dconf
-rmdir -- ~/.config/X11/xinit/xinitrc.d
-rmdir -- ~/.config/X11/xinit
-rmdir -- ~/.config/X11
-
-.PHONY: install uninstall