rust-async/Makefile
2022-02-24 22:05:32 +05:30

10 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}'