aboutsummaryrefslogtreecommitdiffstats
path: root/wire-desktop/Makefile
blob: a8f6186ad2c4843348a1d5cdd6f5647c5884d923 (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/wire/WireCrypt.img
	test -f ~/.var/opt/wire/WireCrypt.key
	mkdir -p -- ~/.var/opt/wire/WireCrypt.d
	test -e ~/.config/Wire || ln -sf -- ../.var/opt/wire/WireCrypt.d/Wire ~/.config/Wire
	../check-any-installed asroot asroot-libpassphrase
	../check-installed gnupg
	../check-installed cryptsetup
	../check-installed key2root
	../check-installed-shebang mount-wire
	../check-installed-shebang umount-wire
	../check-installed-shebang wire-desktop
	mkdir -p -- ~/.local/bin/
	test ! -e ~/.local/bin/mount-wire || test -L ~/.local/bin/mount-wire
	ln -sf -- ~/.dotfiles/wire-desktop/mount-wire ~/.local/bin/
	test ! -e ~/.local/bin/umount-wire || test -L ~/.local/bin/umount-wire
	ln -sf -- ~/.dotfiles/wire-desktop/umount-wire ~/.local/bin/
	test ! -e ~/.local/bin/wire-desktop || test -L ~/.local/bin/wire-desktop
	ln -sf -- ~/.dotfiles/wire-desktop/wire-desktop ~/.local/bin/

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