aboutsummaryrefslogtreecommitdiffstats
path: root/readline
diff options
context:
space:
mode:
Diffstat (limited to '')
l---------readline-common1
-rw-r--r--readline/Makefile19
2 files changed, 10 insertions, 10 deletions
diff --git a/readline-common b/readline-common
new file mode 120000
index 0000000..47f39c3
--- /dev/null
+++ b/readline-common
@@ -0,0 +1 @@
+readline \ No newline at end of file
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