1
- .PHONY : build check clean clippy compile-cairo compile-starknet compile-cairo-1-casm compile-cairo-1-sierra \
1
+ .PHONY : usage build check clean clippy compile-cairo compile-starknet compile-cairo-1-casm compile-cairo-1-sierra \
2
2
compile-cairo-2-casm compile-cairo-2-sierra coverage deps test heaptrack check-python-version
3
3
4
4
export PATH: =$(shell pyenv root) /shims:$(PATH )
@@ -10,7 +10,6 @@ ifeq ($(OS), Darwin)
10
10
export LDFLAGS += -L/opt/homebrew/opt/gmp/lib
11
11
endif
12
12
13
-
14
13
CAIRO_SOURCES =$(wildcard cairo_programs/* .cairo)
15
14
CAIRO_TARGETS =$(patsubst % .cairo,% .json,$(CAIRO_SOURCES ) )
16
15
CAIRO_ABI_TARGETS =$(patsubst % .cairo,% _abi.json,$(CAIRO_SOURCES ) )
@@ -28,6 +27,24 @@ STARKNET_SIERRA_COMPILE_CAIRO_1:=cairo1/bin/starknet-sierra-compile
28
27
STARKNET_COMPILE_CAIRO_2: =cairo2/bin/starknet-compile
29
28
STARKNET_SIERRA_COMPILE_CAIRO_2: =cairo2/bin/starknet-sierra-compile
30
29
30
+ usage :
31
+ @echo ' Usage:'
32
+ @echo ' build: Builds the Rust code'
33
+ @echo ' check: Runs cargo check'
34
+ @echo ' deps: Installs dependencies'
35
+ @echo ' deps-macos: Installs depedencies for MacOS'
36
+ @echo ' clean: Cleans all build artifacts'
37
+ @echo ' clippy: Runs clippy'
38
+ @echo ' test: Runs all tests'
39
+ @echo ' test-cairo-1: Runs the Cairo 1 tests'
40
+ @echo ' test-cairo-2: Runs the Cairo 2 tests'
41
+ @echo ' test-doctests: Runs the doctests'
42
+ @echo ' coverage: Runs everything necessary to generate the coverage report'
43
+ @echo ' coverage-report: Just generates the coverage report'
44
+ @echo ' heaptrack: Runs the heaptrack script'
45
+ @echo ' flamegraph: Runs cargo flamegraph'
46
+ @echo ' benchmark: Runs the benchmarks scripts'
47
+
31
48
#
32
49
# VENV rules.
33
50
#
@@ -106,7 +123,6 @@ $(CAIRO_2_CONTRACTS_TEST_DIR)/%.casm: $(CAIRO_2_CONTRACTS_TEST_DIR)/%.sierra
106
123
compile-cairo-2-sierra : $(CAIRO_2_COMPILED_SIERRA_CONTRACTS )
107
124
compile-cairo-2-casm : $(CAIRO_2_COMPILED_CASM_CONTRACTS )
108
125
109
-
110
126
CAIRO_2_VERSION =2.2.0
111
127
112
128
cairo-repo-2-dir = cairo2
@@ -133,7 +149,6 @@ cairo-%-macos.tar:
133
149
cairo-% .tar :
134
150
curl -L -o " $@ " " https://github.com/starkware-libs/cairo/releases/download/v$* /release-x86_64-unknown-linux-musl.tar.gz"
135
151
136
-
137
152
# =================
138
153
# Normal rules.
139
154
# =================
0 commit comments