Files
leaf/Makefile
2024-04-18 16:39:58 +08:00

19 lines
413 B
Makefile

.PHONY: local local-dev test proto-gen
CFG_COMMIT_HASH := $(shell git rev-parse HEAD | cut -c 1-7)
export CFG_COMMIT_HASH := $(CFG_COMMIT_HASH)
CFG_COMMIT_DATE := $(shell git log --format="%ci" -n 1)
export CFG_COMMIT_DATE := $(CFG_COMMIT_DATE)
cli:
cargo build -p leaf-cli --release
cli-dev:
cargo build -p leaf-cli
test:
cargo test -p leaf -- --nocapture
proto-gen:
./scripts/regenerate_proto_files.sh