.PHONY: all test test-unit test-integration clippy clean help
all: test
test: test-unit test-integration
test-unit:
@echo "Running unit tests..."
@cargo test -p dusk-forge-contract
@cargo test --release
test-integration:
@$(MAKE) -C tests/test-bridge test
clippy:
@echo "Running clippy..."
@cargo clippy --all-targets -- -D warnings
@$(MAKE) -C tests/test-bridge clippy
clean:
@cargo clean
@$(MAKE) -C tests/test-bridge clean
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'