Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .DEFAULT_GOAL := help
- THIS_FILE := $(lastword $(MAKEFILE_LIST))
- target: ## target
- @echo $@ # print target name
- @$(MAKE) -f $(THIS_FILE) other-target # invoke other target
- other-target: ## other target
- @echo $@ # print target name
- help: ## this STDOUT
- @grep -E '^[/a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
- .PHONY: help target other-target
Add Comment
Please, Sign In to add comment