blob: 76f83e9ec1a1bf29484fb23b55b7c34780a24176 (
plain) (
tree)
|
|
.POSIX:
include ../common.mk
install:
mkdir -p -- ~/.dotfiles/.secrets/gnupg
mkdir -p -- ~/.var/lib
if test -L ~/.var/lib/gnupg; then \
test "$$(readlink -- ~/.var/lib/gnupg)" = ~/.dotfiles/.secrets/gnupg; \
else \
test ! -e ~/.var/lib/gnupg && \
ln -s -- ~/.dotfiles/.secrets/gnupg ~/.var/lib/gnupg; \
fi
mkdir -p -- ~/.config/profile.d
test ! -d ~/.config/profile.d/gnupg
ln -sf -- ~/.dotfiles/gnupg/user-profile ~/.config/profile.d/gnupg
$(CHECK_INSTALLED) dash
mkdir -p -- ~/.local/bin
ln -sf -- ~/.dotfiles/gnupg/decrypt ~/.local/bin/
ln -sf -- ~/.dotfiles/gnupg/encrypt ~/.local/bin/
ln -sf -- ~/.dotfiles/gnupg/encrypt-nosign ~/.local/bin/
uninstall:
-unlink -- ~/.config/profile.d/gnupg
-rmdir -- ~/.config/profile.d
-unlink -- ~/.var/lib/gnupg
-unlink -- ~/.local/bin/decrypt
-unlink -- ~/.local/bin/encrypt
-unlink -- ~/.local/bin/encrypt-nosign
.PHONY: install uninstall
|