clean makefile help syntax
This commit is contained in:
parent
66cdca5c85
commit
5bd45973b4
@ -7,11 +7,13 @@ Make your first target 'help' to give an overview of the main targets.
|
|||||||
Running `make help` will search for text which starts with `## ` and show what that target does.
|
Running `make help` will search for text which starts with `## ` and show what that target does.
|
||||||
|
|
||||||
```make
|
```make
|
||||||
|
.PHONY: help
|
||||||
help: ## Print the help message
|
help: ## Print the help message
|
||||||
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
||||||
sort | \
|
sort | \
|
||||||
column -s ':' -t
|
column -s ':' -t
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean: ## Remove generated files
|
clean: ## Remove generated files
|
||||||
$(RM) $(defaults)
|
$(RM) $(defaults)
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user