From 0f1df0db903ba576fd17b08197d3066af7a61e5f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Nov 2023 23:23:40 +0100 Subject: A lot of changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gnupg/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gnupg') diff --git a/gnupg/Makefile b/gnupg/Makefile index 76f83e9..f5e6310 100644 --- a/gnupg/Makefile +++ b/gnupg/Makefile @@ -1,5 +1,4 @@ .POSIX: -include ../common.mk install: mkdir -p -- ~/.dotfiles/.secrets/gnupg @@ -11,20 +10,21 @@ install: ln -s -- ~/.dotfiles/.secrets/gnupg ~/.var/lib/gnupg; \ fi mkdir -p -- ~/.config/profile.d - test ! -d ~/.config/profile.d/gnupg + test ! -e ~/.config/profile.d/gnupg || test -L ~/.config/profile.d/gnupg ln -sf -- ~/.dotfiles/gnupg/user-profile ~/.config/profile.d/gnupg - $(CHECK_INSTALLED) dash + ../check-installed-shebang decrypt + ../check-installed-shebang encrypt + ../check-installed-shebang encrypt-nosign 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: + +! ../check-installed gnupg -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 -- cgit v1.2.3-70-g09d2