aboutsummaryrefslogblamecommitdiffstats
path: root/readline/Makefile
blob: 288907c1034ffd590cacec46e58ed0c673917c30 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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