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

install:
	mkdir -p -- ~/.config/bash/aliases.d
	mkdir -p -- ~/.config/bash/bashrc.d
	test ! -e ~/.config/bash/aliases.d/coreutils || test -L ~/.config/bash/aliases.d/coreutils
	test ! -e ~/.config/bash/bashrc.d/coreutils || test -L ~/.config/bash/bashrc.d/coreutils
	ln -sf -- ~/.dotfiles/coreutils/bash-aliases ~/.config/bash/aliases.d/coreutils
	ln -sf -- ~/.dotfiles/coreutils/bash-bashrc ~/.config/bash/bashrc.d/coreutils

uninstall:
	+! ../check-installed coreutils
	-unlink -- ~/.config/bash/aliases.d/coreutils
	-rmdir -- ~/.config/bash/aliases.d
	-unlink -- ~/.config/bash/bashrc.d/coreutils
	-rmdir -- ~/.config/bash/bashrc.d