Files
leaf/Makefile
T
2023-09-26 08:25:12 +08:00

19 lines
417 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)
local:
cargo build -p leaf-bin --release
local-dev:
cargo build -p leaf-bin
test:
cargo test -p leaf -- --nocapture
proto-gen:
./scripts/regenerate_proto_files.sh