-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (34 loc) · 962 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.DEFAULT_GOAL := build
MAKEFLAGS += -rR
CARGO ?= cargo
DESTDIR=
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
build:
$(CARGO) build --workspace
clean:
$(CARGO) clean
docs:
$(CARGO) doc --no-deps --workspace
check:
$(CARGO) check --workspace
test:
$(CARGO) nextest run --workspace --no-fail-fast
clippy:
$(CARGO) clippy --workspace
check-fmt:
$(CARGO) fmt --all -- --check
release:
$(CARGO) build --release --workspace --features performant
dev-dataset:
$(CARGO) install -q --debug --path crates/dataset --bin dataset
dev-datashed:
$(CARGO) install -q --debug --path crates/datashed --bin datashed
dev-install: dev-dataset dev-datashed
install:
install -Dm755 target/release/datashed $(DESTDIR)$(BINDIR)/datashed
install -Dm755 target/release/dataset $(DESTDIR)$(BINDIR)/dataset
uninstall:
rm -f $(DESTDIR)$(BINDIR)/datashed
rm -f $(DESTDIR)$(BINDIR)/dataset
.PHONY: build clean docs check test clippy check-fmt release install uninstall