Makefile 104: Help

help

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
➜  example_stages cat Makefile
.DEFAULT_GOAL := help


help: ## show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'


stage1: ## This message will show up when typing 'make help'
@echo I am stage1

stage2:
echo "I am stage2"
➜ example_stages make help
help: show this help
stage1: This message will show up when typing 'make help'

output:

1
2
3
➜   make help
help: show this help
stage1: This message will show up when typing 'make help'
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~