aboutsummaryrefslogtreecommitdiffstats
path: root/readline/Makefile
blob: 45c47e8370e106b63edea0ae46fe711b886734f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.POSIX:

install:
	mkdir -p -- ~/.config
	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:
	+! ../check-installed readline
	+! ../check-installed libreadline
	+! ../check-installed libreadline-glibc
	+! ../check-installed libreadline-musl
	+! ../check-installed readline-common
	-unlink -- ~/.config/inputrc
	-unlink -- ~/.inputrc