aboutsummaryrefslogtreecommitdiffstats
path: root/element-desktop/Makefile
blob: acc013c42085e0582b4657a47bc5e8e28b772c6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.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
	../check-installed-shebang mount-element
	../check-installed-shebang umount-element
	../check-installed-shebang element-desktop
	mkdir -p -- ~/.local/bin/
	test ! -e ~/.local/bin/mount-element || test -L ~/.local/bin/mount-element
	ln -sf -- ~/.dotfiles/element-desktop/mount-element ~/.local/bin/
	test ! -e ~/.local/bin/umount-element || test -L ~/.local/bin/umount-element
	ln -sf -- ~/.dotfiles/element-desktop/umount-element ~/.local/bin/
	test ! -e ~/.local/bin/element-desktop || test -L ~/.local/bin/element-desktop
	ln -sf -- ~/.dotfiles/element-desktop/element-desktop ~/.local/bin/

uninstall:
	+! ../check-installed element-desktop
	-unlink -- ~/.local/bin/mount-element
	-unlink -- ~/.local/bin/umount-element
	-unlink -- ~/.local/bin/element-desktop