aboutsummaryrefslogtreecommitdiffstats
path: root/readline/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'readline/Makefile')
-rw-r--r--readline/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/readline/Makefile b/readline/Makefile
new file mode 100644
index 0000000..288907c
--- /dev/null
+++ b/readline/Makefile
@@ -0,0 +1,18 @@
+.POSIX:
+include ../common.mk
+
+install:
+ mkdir -p -- ~/.config
+ test ! -d ~/.config/inputrc
+ test ! -d ~/.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