-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
37 lines (28 loc) · 768 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
32
33
34
35
36
37
.PHONY: install clean check clippy
CC = cargo
all: dbg
dbg:
$(CC) build
check:
$(CC) check
clippy:
$(CC) clippy
run: dbg
$(shell sudo target/debug/rdm)
rdm:
$(CC) build --release
install: #rdm
# Copy themes
$(shell sudo mkdir -p /usr/share/rdm/themes/default/)
$(shell sudo cp -f theme/background.png /usr/share/rdm/themes/default/)
$(shell sudo cp -f theme/rdm.theme /usr/share/rdm/themes/default/)
# Copy PAM file
$(shell sudo cp -f data/rdm.pam /etc/pam.d/rdm)
# Copy systemd service file
$(shell sudo cp -f data/rdm.service /usr/lib/systemd/system)
# Copy dbus file (not required for now)
#$(shell sudo cp -f data/rdm.dbus /etc/dbus-1/system.d/rdm.conf)
# Copy binary
$(shell sudo cp -rf target/release/rdm /usr/local/bin)
clean:
$(CC) clean