rust-async/Makefile

11 lines
328 B
Makefile

default: help
async: ## Runs non-blocking program
cargo run --bin=async-tokio
blocking: ## Runs blocking program
cargo run --bin=blocking
help: ## Prints help for targets with comments
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'