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 --- readline/Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'readline') diff --git a/readline/Makefile b/readline/Makefile index 288907c..45c47e8 100644 --- a/readline/Makefile +++ b/readline/Makefile @@ -1,18 +1,17 @@ .POSIX: -include ../common.mk install: mkdir -p -- ~/.config - test ! -d ~/.config/inputrc - test ! -d ~/.inputrc + test ! -e ~/.config/inputrc || test -L ~/.config/inputrc + test ! -e ~/.inputrc || test -L ~/.inputrc ln -sf -- ~/.dotfiles/readline/inputrc ~/.config/inputrc ln -sf -- .config/inputrc ~/.inputrc uninstall: - -if ! $(CHECK_INSTALLED) readline 2>/dev/null && \ - ! $(CHECK_INSTALLED) libreadline 2>/dev/null; then \ - unlink -- ~/.config/inputrc; \ - unlink -- ~/.inputrc; \ - fi - -.PHONY: install uninstall + +! ../check-installed readline + +! ../check-installed libreadline + +! ../check-installed libreadline-glibc + +! ../check-installed libreadline-musl + +! ../check-installed readline-common + -unlink -- ~/.config/inputrc + -unlink -- ~/.inputrc -- cgit v1.2.3-70-g09d2