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 /texinfo | |
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 'texinfo')
-rw-r--r-- | texinfo/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/texinfo/Makefile b/texinfo/Makefile index beaa9d7..8ea0ad7 100644 --- a/texinfo/Makefile +++ b/texinfo/Makefile @@ -1,20 +1,17 @@ .POSIX: -include ../common.mk install: - if test -x /usr/bin/info; then \ + if ../check-in-path info; then \ mkdir -p -- ~/.config/bash/aliases.d && \ - test ! -d ~/.config/bash/aliases.d/texinfo && \ + (test ! -e ~/.config/bash/aliases.d/texinfo || \ + test -L ~/.config/bash/aliases.d/texinfo) && \ ln -sf -- ~/.dotfiles/texinfo/bash-aliases ~/.config/bash/aliases.d/texinfo; \ else \ - make uninstall; \ + $(MAKE) uninstall; \ fi uninstall: - -if ! $(CHECK_INSTALLED) info 2>/dev/null && \ - ! $(CHECK_INSTALLED) texinfo 2>/dev/null; then \ - unlink -- ~/.config/bash/aliases.d/texinfo; \ - rmdir -- ~/.config/bash/aliases.d; \ - fi - -.PHONY: install uninstall + +! ../check-installed info + +! ../check-installed texinfo + unlink -- ~/.config/bash/aliases.d/texinfo + rmdir -- ~/.config/bash/aliases.d |