-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (29 loc) · 784 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
BUILD_RELEASE=false
RELEASE=
DLWP_FEATURES=
DL_KEY=
ifeq ($(BUILD_RELEASE), true)
RELEASE = --release
endif
all: libs driver
@ cargo build -p dlcmd --release
@ cargo build -p new_dlukey --release
@ cargo build -p dlup --release
libs: tests
@ cargo build -p dlwp $(RELEASE)
tests:
@ cargo test -p dlwp $(DLWP_FEATURES) -- --nocapture
build_tools:
@ cargo build -p dlcmd --release
@ cargo build -p new_dlukey --release
@ cargo build -p dlup --release
@ cargo build -p client --release
move_tools:
sudo mv target/release/new_dlukey /sbin/new_dlukey
sudo mv target/release/dlcmd /sbin/dlcmd
sudo mv target/release/dlup /sbin/dlup
sudo mv target/release/client /sbin/dl_client
driver:
@ DLU_KEY=$(DL_KEY) cargo build -p darklight_driver --release
docs:
@ cargo doc