diff --git a/CHANGELOG.md b/CHANGELOG.md index e776dfd3c5..5ded21ea64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* chore: Unify deps makefile target [#2211](https://github.com/lambdaclass/cairo-vm/pull/2211) + * fix: Added `cairo_1_test_contracts` and `cairo_2_test_contracts` as dependencies for `test-extensive_hints` target [#2201](https://github.com/lambdaclass/cairo-vm/pull/2201) * breaking: Store constants in Hint Data [#2191](https://github.com/lambdaclass/cairo-vm/pull/2191) diff --git a/Makefile b/Makefile index 8cae4aa86e..8f2ba08fb3 100644 --- a/Makefile +++ b/Makefile @@ -12,8 +12,10 @@ ifndef PROPTEST_CASES export PROPTEST_CASES endif +UNAME := $(shell uname) + .PHONY: build-cairo-1-compiler build-cairo-1-compiler-macos build-cairo-2-compiler build-cairo-2-compiler-macos \ - deps deps-macos cargo-deps build run check test clippy coverage benchmark flamegraph\ + deps deps-macos deps-linux cargo-deps build run check test clippy coverage benchmark flamegraph\ compare_benchmarks_deps compare_benchmarks docs clean \ compare_trace_memory compare_trace compare_memory compare_pie compare_all_no_proof \ compare_trace_memory_proof compare_all_proof compare_trace_proof compare_memory_proof compare_air_public_input compare_air_private_input\ @@ -227,7 +229,15 @@ cargo-deps: cairo1-run-deps: cd cairo1-run; make deps -deps: create-proof-programs-symlinks cargo-deps build-cairo-1-compiler build-cairo-2-compiler cairo1-run-deps python-deps ; +deps: +ifeq ($(UNAME), Linux) +deps: deps-linux +endif +ifeq ($(UNAME), Darwin) +deps: deps-macos +endif + +deps-linux: create-proof-programs-symlinks cargo-deps build-cairo-1-compiler build-cairo-2-compiler cairo1-run-deps python-deps ; python-deps: uv python install 3.9.15 ; \