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 /readline/Makefile | |
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 'readline/Makefile')
-rw-r--r-- | readline/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
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 |