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

        



                                                                                            


                                     








                                                                                             
.POSIX:
include ../common.mk

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_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