43 lines
882 B
Makefile
43 lines
882 B
Makefile
.DEFAULT_GOAL := help
|
|
|
|
SHELL := /bin/bash
|
|
|
|
help:
|
|
$(info The following targets are available:)
|
|
$(info ------------------------------------)
|
|
$(info build - Build with `cargo build`)
|
|
$(info dev - Setup full dev environment)
|
|
$(info help - Shows this message)
|
|
$(info test - Test without any trace output)
|
|
$(info test-error - Test with trace error output)
|
|
$(info test-warn - Test with trace warning output)
|
|
$(info test-info - Test with trace info output)
|
|
$(info test-trace - Test with trace trace output)
|
|
$(info test-debug - Test with trace debug output)
|
|
$(info )
|
|
|
|
build:
|
|
cargo build
|
|
|
|
dev:
|
|
source ./scripts/dev-setup.bash
|
|
|
|
test:
|
|
cargo test
|
|
|
|
test-info:
|
|
TEST_LOG=info $(MAKE) test
|
|
|
|
test-error:
|
|
TEST_LOG=error $(MAKE) test
|
|
|
|
test-warn:
|
|
TEST_LOG=warn $(MAKE) test
|
|
|
|
test-trace:
|
|
TEST_LOG=trace $(MAKE) test
|
|
|
|
test-debug:
|
|
TEST_LOG=debug $(MAKE) test
|
|
|