-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile
29 lines (20 loc) · 862 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
CARGO = cargo
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
CARGO += --config 'build.rustdocflags = ["-C", "link-args=-framework CoreFoundation -framework Security"]'
endif
help: ## Display this help screen
@grep -h \
-E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clippy: ## Run clippy checks over all workspace members and formatted correctly
@cargo check
@cargo fmt --all -- --check
@cargo clippy --all-targets -- -D warnings
fix: ## Automatically apply lint suggestions. This flag implies `--no-deps` and `--all-targets`
@cargo clippy --fix
unit_test: ## Run tests for all the workspace members
@cargo test --release --all
test: ## Run tests for all the workspace members
@cd test && ./stark_aggregation.sh yes BN128 && cd ..
.PHONY: clippy fmt test