mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 16:02:32 +00:00
19 lines
417 B
Makefile
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
|