aboutsummaryrefslogtreecommitdiffstats
path: root/mplayer
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-11-18 23:23:40 +0100
committerMattias Andrée <maandree@kth.se>2023-11-18 23:23:40 +0100
commit0f1df0db903ba576fd17b08197d3066af7a61e5f (patch)
treea59c04307b1382257afa3c3512ec3abadf7e0e47 /mplayer
parentUse losetup -d instead of --detach and add clean up (diff)
downloaddotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.gz
dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.bz2
dotfiles-0f1df0db903ba576fd17b08197d3066af7a61e5f.tar.xz
A lot of changes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mplayer')
-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