aboutsummaryrefslogtreecommitdiffstats
path: root/wire-desktop/Makefile
blob: 60a1b187857772d43c9fea0ad982246d5f793692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.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
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -e ~/.config/bash/aliases.d/wire-desktop || \
		test -L ~/.config/bash/aliases.d/wire-desktop 
	ln -sf -- ~/.dotfiles/wire-desktop/bash-aliases ~/.config/bash/aliases.d/wire-desktop

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