.PHONY: build release clean fmt check test install doc help tasks clippy publish publish-dry-run build-thoughtchaind
default: help
CARGO_CMD=/usr/bin/env cargo
build: fmt build-thoughtchaind
${CARGO_CMD} build --workspace --release
build-thoughtchaind:
${CARGO_CMD} build -p thoughtchain --features server --bin thoughtchaind --release
release: fmt check clippy build test doc
fmt:
${CARGO_CMD} fmt
check:
${CARGO_CMD} check --workspace
${CARGO_CMD} check -p thoughtchain --features server --bin thoughtchaind
clippy:
${CARGO_CMD} fmt
${CARGO_CMD} clippy --workspace --all-targets --all-features -- -D warnings
test:
${CARGO_CMD} test --workspace
${CARGO_CMD} test -p thoughtchain --features server
doc:
${CARGO_CMD} doc --workspace --all-features
publish:
${CARGO_CMD} publish -p cloudllm_mcp
${CARGO_CMD} publish -p thoughtchain
${CARGO_CMD} publish -p cloudllm
publish-dry-run:
${CARGO_CMD} publish -p cloudllm_mcp --dry-run
${CARGO_CMD} publish -p thoughtchain --dry-run
${CARGO_CMD} publish -p cloudllm --dry-run
clean:
${CARGO_CMD} clean
help tasks:
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'