forked from surrealdb/surrealdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 837 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
.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: setup
setup:
cargo upgrade --workspace --pinned --to-lockfile
cargo update
.PHONY: docs
docs:
cargo doc --open --no-deps --package surrealdb
.PHONY: test
test:
cargo test --workspace
.PHONY: check
check:
cargo check --workspace
cargo fmt --all -- --check
cargo clippy -- -W warnings
.PHONY: clean
clean:
cargo clean
.PHONY: serve
serve:
cargo run -- start --log trace --user root --pass root memory
.PHONY: sql
sql:
cargo run -- sql --conn http://0.0.0.0:8000 --user root --pass root --ns test --db test
.PHONY: quick
quick:
cargo build
.PHONY: build
build:
cargo build --release