aboutsummaryrefslogblamecommitdiffstats
path: root/radharc/Makefile
blob: 9c94b2aebae84f0db0c601afc67bd232f2b3201c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
       
                    



                  
                         


                                                                                                  


                                                                  





                                                                         
                                       

                         
.POSIX:
include ../common.mk

XINITRC_ORDER = 20

install:
	test -x /bin/dash
	mkdir -p -- ~/.config/X11/xinit/xinitrc.d
	test ! -d ~/.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
	ln -sf -- ~/.dotfiles/radharc/radharc ~/.local/bin/radharc

uninstall:
	-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