-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile
55 lines (42 loc) · 1.16 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
##################
# Pre-requisites
# - Foundry
# - pnpm
# - yarn
# - cargo-clippy
##################
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: setup
setup: ## Run if setting up for first time
git submodule update --init --recursive
cd tests/ccip-contracts/contracts/;\
pnpm install
cd tests/2024-05-Sablier/v2-core/;\
yarn install && forge build
cd tests/prb-math/;\
npm install && forge build
cd tests/2024-07-templegold/;\
yarn
.PHONY: pr
pr: ## Run before sending PRs
cargo +nightly fmt --all
cargo test --quiet
cargo clippy --quiet --workspace --all-targets --all-features
cli/reportgen.sh
.PHONY: build
build: ## Build the compiler
cargo build --release
.PHONY: test
test: ## Run the compiler unit tests
cargo test
cargo clippy --quiet --workspace --all-targets --all-features
.PHONY: fmt
fmt: ## Run the rust formatter
cargo +nightly fmt --all
.PHONY: test-watch
test-watch: ## Run compiler tests when files change
watchexec -e rs,toml "cargo test --quiet"
# Debug print vars with `make print-VAR_NAME`
print-%: ; @echo $*=$($*)