-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (23 loc) · 944 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PREFIX = /usr/local
.PHONY: all dmenu-quicklaunch dmenu-quicklaunch-srv install clean
all: dmenu-quicklaunch dmenu-quicklaunch-srv
dmenu-quicklaunch:
cargo build --release --bin dmenu-quicklaunch
dmenu-quicklaunch-srv:
cargo build --release --bin dmenu-quicklaunch-srv
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m755 target/release/dmenu-quicklaunch $(DESTDIR)$(PREFIX)/bin/
install -m755 target/release/dmenu-quicklaunch-srv $(DESTDIR)$(PREFIX)/bin/
install -m644 dmenu-quicklaunch-srv.service $(DESTDIR)/usr/lib/systemd/user/
systemd-enable:
systemctl --user enable dmenu-quicklaunch-srv.service
systemctl --user start dmenu-quicklaunch-srv.service
clean:
@rm -r target/
systemd-disable:
systemctl --user disable dmenu-quicklaunch-srv.service
uninstall:
rm $(DESTDIR)$(PREFIX)/bin/dmenu-quicklaunch
rm $(DESTDIR)$(PREFIX)/bin/dmenu-quicklaunch-srv
rm $(DESTDIR)/usr/lib/systemd/user/dmenu-quicklaunch-srv.service