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

install:
	../check-installed-shebang mplayer
	mkdir -p -- ~/.config/profile.d
	test ! -e ~/.config/profile.d/mplayer || test -L ~/.config/profile.d/mplayer
	ln -sf -- ~/.dotfiles/mplayer/user-profile ~/.config/profile.d/mplayer
	mkdir -p -- ~/.local/bin
	ln -sf -- ~/.dotfiles/mplayer/mplayer ~/.local/bin/

uninstall:
	+! ../check-installed mplayer
	-unlink -- ~/.config/profile.d/mplayer
	-rmdir -- ~/.config/profile.d
	-rm -rf -- ~/.config/mplayer
	-unlink -- ~/.local/bin/mplayer