aboutsummaryrefslogtreecommitdiffstats
path: root/wire-desktop/Makefile
blob: e6d821bd642bcaf07b25e15f9eb6204a30c6ee6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:
include ../common.mk

install:
	test -f ~/.var/wire/WireCrypt.img
	test -f ~/.var/wire/WireCrypt.key
	mkdir -p -- ~/.var/wire/WireCrypt.d
	test -e ~/.config/Wire || ln -s -- ../.var/wire/WireCrypt.d/Wire ~/.config/Wire
	$(CHECK_INSTALLED) asroot
	$(CHECK_INSTALLED) gnupg
	$(CHECK_INSTALLED) cryptsetup
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -d ~/.config/bash/aliases.d/wire-desktop
	ln -sf -- ~/.dotfiles/wire-desktop/bash-aliases ~/.config/bash/aliases.d/wire-desktop

uninstall:
	-unlink -- ~/.config/bash/aliases.d/wire-desktop
	-rmdir -- ~/.config/bash/aliases.d

.PHONY: install uninstall