aboutsummaryrefslogtreecommitdiffstats
path: root/signal-desktop/Makefile
blob: 2aa0c960b9d7b07bd7a95680a29678b5abbc8455 (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/opt/signal/SignalCrypt.img
	test -f ~/.var/opt/signal/SignalCrypt.key
	mkdir -p -- ~/.var/opt/signal/SignalCrypt.d
	test -e ~/.config/Signal || ln -sf -- ../.var/opt/signal/SignalCrypt.d/Signal ~/.config/Signal
	$(CHECK_INSTALLED) asroot
	$(CHECK_INSTALLED) gnupg
	$(CHECK_INSTALLED) cryptsetup
	mkdir -p -- ~/.config/bash/aliases.d
	test ! -d ~/.config/bash/aliases.d/signal-desktop
	ln -sf -- ~/.dotfiles/signal-desktop/bash-aliases ~/.config/bash/aliases.d/signal-desktop

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

.PHONY: install uninstall