rust-async/Makefile

11 lines
328 B
Makefile
Raw Normal View History

2022-02-24 22:05:32 +05:30
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}'