make help: typo fix, add spacing & refactor (#413)
* help: fix 'code generation' label * help: add a newline after each command group * Makefile: move awk command to a separate script for readabilitypull/25/head
parent
2d70d5d447
commit
6a70c9ba52
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env awk
|
||||
|
||||
BEGIN {
|
||||
FS = ":.*?## "
|
||||
first = 1
|
||||
COLOR_BROWN = "\033[33m"
|
||||
COLOR_DARKGREEN = "\033[36m"
|
||||
COLOR_RESET = "\033[0m"
|
||||
} /^[a-zA-Z0-9_-]+:.*?## / {
|
||||
printf COLOR_DARKGREEN
|
||||
printf " make %-20s", $1
|
||||
printf COLOR_RESET
|
||||
printf " %s\n", $2
|
||||
} /^##(.*)/ {
|
||||
if (!first)
|
||||
printf "\n"
|
||||
printf "%s%s\n", COLOR_BROWN, substr($0, 4)
|
||||
first = 0
|
||||
}
|
||||
|
Loading…
Reference in new issue