-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (26 loc) · 858 Bytes
/
justfile
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
32
33
34
35
36
37
name := 'container-desktop-entries'
client-name := 'container-desktop-entries'
rootdir := ''
prefix := '/usr'
base-dir := absolute_path(clean(rootdir / prefix))
conf-dir := '/etc'
lib-dir := '/lib'
exec-src := 'target' / 'release' / name
exec-dst := base-dir / 'bin' / name
exec-client-dst := base-dir / 'bin' / client-name
service-src := 'systemd' / 'container-desktop-entries'
service-dst := lib-dir / 'systemd' / 'user' / 'container-desktop-entries.service'
build *args:
cargo build --release {{args}}
build-client *args:
cargo build --release {{args}}
install:
install -Dm0755 {{exec-src}} {{exec-dst}}
install -Dm0644 {{service-src}} {{service-dst}}
install-client:
install -Dm0755 {{exec-src}} {{exec-client-dst}}
uninstall:
rm -f {{exec-dst}}
rm -f {{service-dst}}
uninstall-client:
rm -f {{exec-client-dst}}