.PHONY: help data clean build test
help:
@echo "Blockpedia Build Tools"
@echo "======================"
@echo ""
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
data:
@echo "Downloading block data sources..."
cargo run --bin build-data --features build-data
@echo "Data files saved to ./data/"
@echo "You can now build without network access using: cargo build --features use-prebuilt"
clean:
rm -rf data/
cargo clean
build:
cargo build --release
build-prebuilt:
cargo build --release --features use-prebuilt
test:
cargo test
test-prebuilt:
cargo test --features use-prebuilt
check:
cargo check
fmt:
cargo fmt
clippy:
cargo clippy
doc:
cargo doc --open
dev-setup: data
@echo "Development environment ready!"
@echo "Try: make build-prebuilt"