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

install:
	mkdir -p -- ~/.var/lib/moc
	mkdir -p -- ~/.config/bash/aliases.d
	rm -rf ~/.moc
	test ! -e ~/.config/bash/aliases.d/moc || test -L ~/.config/bash/aliases.d/moc
	ln -sf -- .var/lib/moc ~/.moc
	ln -sf -- ~/.dotfiles/moc/bash-aliases ~/.config/bash/aliases.d/moc

uninstall:
	+! ../check-installed moc
	-unlink -- ~/.moc
	-unlink -- ~/.config/bash/aliases.d/moc
	-rmdir -- ~/.config/bash/aliases.d
	-rm -rf -- ~/.var/lib/moc