aboutsummaryrefslogtreecommitdiffstats
path: root/mplayer
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--mplayer/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/mplayer/Makefile b/mplayer/Makefile
index 372ea97..3f08050 100644
--- a/mplayer/Makefile
+++ b/mplayer/Makefile
@@ -1,18 +1,16 @@
.POSIX:
-include ../common.mk
install:
- $(CHECK_INSTALLED) dash
+ ../check-installed-shebang mplayer
mkdir -p -- ~/.config/profile.d
- test ! -d ~/.config/profile.d/mplayer
+ 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
-
-.PHONY: install uninstall