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




                  
                                          
                                                 

                                                                              
                                                                                                  
                                
                                                                      
                                                                  

          
                                     



                                                                         
                                       
.POSIX:

XINITRC_ORDER = 20

install:
	../check-installed-shebang radharc
	mkdir -p -- ~/.config/X11/xinit/xinitrc.d
	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 ! -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