aboutsummaryrefslogtreecommitdiffstats
path: root/open-vm-tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'open-vm-tools/Makefile')
-rw-r--r--open-vm-tools/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/open-vm-tools/Makefile b/open-vm-tools/Makefile
new file mode 100644
index 0000000..c09adeb
--- /dev/null
+++ b/open-vm-tools/Makefile
@@ -0,0 +1,16 @@
+.POSIX:
+
+XINITRC_ORDER = 95
+
+install:
+ mkdir -p -- ~/.config/X11/xinit/xinitrc.d
+ test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools || \
+ test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools
+ ln -sf -- ~/.dotfiles/open-vm-tools/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools
+
+uninstall:
+ +! ../check-installed open-vm-tools
+ -unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools
+ -rmdir -- ~/.config/X11/xinit/xinitrc.d
+ -rmdir -- ~/.config/X11/xinit
+ -rmdir -- ~/.config/X11