aboutsummaryrefslogblamecommitdiffstats
path: root/element-desktop/Makefile
blob: 6426e835c91493897a174815bcc9d53226cfbf19 (plain) (tree)
1
2
3
4
5
6
7
8
       
                    





                                                                                                      


                                     








                                                                                                   
.POSIX:
include ../common.mk

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

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

.PHONY: install uninstall