Skip to content

Commit

Permalink
Add simple makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Jul 5, 2024
1 parent 0951315 commit 378c0a0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.PHONY: usage deps build check test clean

UNAME := $(shell uname)

usage:
@echo "Usage:"
@echo " deps: Installs the necesarry dependencies."
@echo " build: Builds the crate."
@echo " check: Checks format and lints."
@echo " test: Runs all tests."
@echo " clean: Cleans the built artifacts."

build:
cargo build --release
# cargo build --release --all-features

check:
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings
# cargo clippy --all-targets --all-features -- -D warnings

test:
cargo test
# cargo test --profile ci --all-features

clean:
cargo clean

deps:
ifeq ($(UNAME), Darwin)
deps: deps-macos
endif
deps:

deps-macos:
-brew install llvm@18 --quiet

0 comments on commit 378c0a0

Please sign in to comment.