aboutsummaryrefslogblamecommitdiffstats
path: root/wire-desktop/Makefile
blob: 28fea15f8566dde2f7dc40b75b6ac04e575bdc60 (plain) (tree)
1
2
3
4
5
6
7
8
       
                    




                                           
                                                                                        


                                     








                                                                                             
.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 -sf -- ../.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