diff options
Diffstat (limited to 'radharc/Makefile')
-rw-r--r-- | radharc/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/radharc/Makefile b/radharc/Makefile index 9c94b2a..f68072b 100644 --- a/radharc/Makefile +++ b/radharc/Makefile @@ -1,22 +1,21 @@ .POSIX: -include ../common.mk XINITRC_ORDER = 20 install: - test -x /bin/dash + ../check-installed-shebang radharc mkdir -p -- ~/.config/X11/xinit/xinitrc.d - test ! -d ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc + test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc || \ + test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc ln -sf -- ~/.dotfiles/radharc/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc mkdir -p -- ~/.local/bin - test ! -d ~/.local/bin/radharc + test ! -e ~/.local/bin/radharc || test -L ~/.local/bin/radharc ln -sf -- ~/.dotfiles/radharc/radharc ~/.local/bin/radharc uninstall: + +! ../check-installed radharc -unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-radharc -rmdir -- ~/.config/X11/xinit/xinitrc.d -rmdir -- ~/.config/X11/xinit -rmdir -- ~/.config/X11 -unlink -- ~/.local/bin/radharc - -.PHONY: install uninstall |