blob: 6583b2d0cbc5ac6160d9ce56b2ef70fc02d2678b (
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
uninstall:
-unlink -- ~/.config/profile.d/gnupg
-rmdir -- ~/.config/profile.d
-unlink -- ~/.var/lib/gnupg
.PHONY: install uninstall
|