Last active
June 9, 2023 02:29
-
-
Save hayajo/cde4803cc5199f69668f821511d15b69 to your computer and use it in GitHub Desktop.
Makefile で help を実装する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME ?= world | |
.PHONY: help | |
help: ## show help | |
@echo "Usage:" | |
@awk -F':.*##' '/^[-_a-zA-Z0-9]+:.*##/{printf"%-12s\t%s\n",$$1,$$2}' $(MAKEFILE_LIST) | sort | |
@echo "" | |
.PHONY: greeting | |
greeting: ## hello world | |
@echo "Hello $(NAME)!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment