aboutsummaryrefslogblamecommitdiffstats
path: root/element-desktop/Makefile
blob: ce7b6d2a66028e5be1aef7e9e7beafec3dd0e2b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


        



                                                                                                           



                                                          
                                            

                                                                


                                                                                                   
                                             

                                                           
.POSIX:

install:
	test -f ~/.var/opt/element/ElementCrypt.img
	test -f ~/.var/opt/element/ElementCrypt.key
	mkdir -p -- ~/.var/opt/element/ElementCrypt.d
	test -e ~/.config/Element || ln -sf -- ../.var/opt/element/ElementCrypt.d/Element ~/.config/Element
	../check-any-installed asroot asroot-libpassphrase
	../check-installed gnupg
	../check-installed cryptsetup
	../check-installed key2root
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -e ~/.config/bash/aliases.d/element-desktop || \
		test -L ~/.config/bash/aliases.d/element-desktop
	ln -sf -- ~/.dotfiles/element-desktop/bash-aliases ~/.config/bash/aliases.d/element-desktop

uninstall:
	+! ../check-installed element-desktop
	-unlink -- ~/.config/bash/aliases.d/element-desktop
	-rmdir -- ~/.config/bash/aliases.d