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 --- texinfo/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'texinfo') 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 -- cgit v1.2.3-70-g09d2