forked from surrealdb/surrealdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (43 loc) · 1.02 KB
/
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
52
53
54
.PHONY: default
default:
@echo "Choose a Makefile target:"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
.PHONY: check-deps
check-deps:
@cargo make --help >/dev/null 2>&1 || { \
echo >&2 "ERROR: Install cargo-make to use make tasks."; \
echo >&2 "$ cargo install --no-default-features --force --locked cargo-make"; \
echo >&2 "More info: https://sagiegurari.github.io/cargo-make"; \
echo >&2; \
exit 1; \
}
.PHONY: setup
setup: check-deps
cargo make setup
.PHONY: docs
docs: check-deps
cargo make docs
.PHONY: test
test: check-deps
cargo make test
.PHONY: check
check: check-deps
cargo make check
.PHONY: clean
clean: check-deps
cargo make clean
.PHONY: bench
bench: check-deps
cargo make bench
.PHONY: serve
serve: check-deps
cargo make serve
.PHONY: sql
sql: check-deps
cargo make sql
.PHONY: build
build: check-deps
cargo make build
.PHONY: release
release: check-deps
cargo make release