2025-02-09 21:20:16 +00:00
|
|
|
---
|
2025-02-13 02:52:15 +00:00
|
|
|
title: "make help target"
|
2025-02-12 14:01:15 +00:00
|
|
|
tags: [ "system", "make", "help" ]
|
2025-02-09 21:20:16 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
```make
|
|
|
|
help: ## Print the help message
|
|
|
|
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
|
|
|
|
sort | \
|
|
|
|
column -s ':' -t
|
|
|
|
|
|
|
|
clean: ## Remove generated files
|
|
|
|
$(RM) $(defaults)
|
|
|
|
```
|
|
|
|
|