aboutsummaryrefslogtreecommitdiffstats
path: root/mate-settings-daemon/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-07 11:53:01 +0200
committerMattias Andrée <maandree@kth.se>2024-06-07 11:53:01 +0200
commitca34d991ad527fec5edde186bb8479982ac52c03 (patch)
tree3d82e92736a73a3276027d1d67ec6bb350ccc173 /mate-settings-daemon/Makefile
parentUpdate clawsrc and make python and st exclusive to zenith (diff)
downloaddotfiles-ca34d991ad527fec5edde186bb8479982ac52c03.tar.gz
dotfiles-ca34d991ad527fec5edde186bb8479982ac52c03.tar.bz2
dotfiles-ca34d991ad527fec5edde186bb8479982ac52c03.tar.xz
Minor fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'mate-settings-daemon/Makefile')
-rw-r--r--mate-settings-daemon/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/mate-settings-daemon/Makefile b/mate-settings-daemon/Makefile
new file mode 100644
index 0000000..6a335d8
--- /dev/null
+++ b/mate-settings-daemon/Makefile
@@ -0,0 +1,17 @@
+.POSIX:
+
+install:
+ test ! -e ~/.local/bin/mate-settings-daemon || test -L ~/.local/bin/mate-settings-daemon
+ if test -f /usr/libexec/mate-settings-daemon; then \
+ ln -sf /usr/libexec/mate-settings-daemon ~/.local/bin/mate-settings-daemon; \
+ elif test -f /usr/lib/mate-settings-daemon/mate-settings-daemon; then \
+ ln -sf /usr/lib/mate-settings-daemon/mate-settings-daemon ~/.local/bin/mate-settings-daemon; \
+ elif test -f /usr/lib/mate-settings-daemon; then \
+ ln -sf /usr/lib/mate-settings-daemon ~/.local/bin/mate-settings-daemon; \
+ else \
+ rm -f -- ~/.local/bin/mate-settings-daemon 2>/dev/null; \
+ fi
+
+uninstall:
+ +! ../check-installed mate-settings-daemon
+ -unlink -- ~/.local/bin/mate-settings-daemon