diff options
author | Mattias Andrée <maandree@kth.se> | 2023-11-18 23:23:40 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-11-18 23:23:40 +0100 |
commit | 0f1df0db903ba576fd17b08197d3066af7a61e5f (patch) | |
tree | a59c04307b1382257afa3c3512ec3abadf7e0e47 /gnupg | |
parent | Use losetup -d instead of --detach and add clean up (diff) | |
download | dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.gz dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.bz2 dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.xz |
A lot of changes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | gnupg/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
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 |