make: fix help w/ linux

Before the change, `make help` generated an error in linux:
```
$ make help
Command                             Usage
sed: -e expression #1, char 64: unterminated address regex
```
This commit is contained in:
Pierre Tachoire
2023-08-29 21:00:31 +02:00
parent 2d71275a3c
commit d9978b250c

View File

@@ -5,14 +5,14 @@
## Display this help screen ## Display this help screen
help: help:
@printf "\e[36m%-35s %s\e[0m\n" "Command" "Usage" @printf "\e[36m%-35s %s\e[0m\n" "Command" "Usage"
@sed -n '/^## /{\ @sed -n -e '/^## /{'\
s/## //g;\ -e 's/## //g;'\
h;\ -e 'h;'\
n;\ -e 'n;'\
s/:.*//g;\ -e 's/:.*//g;'\
G;\ -e 'G;'\
s/\n/ /g;\ -e 's/\n/ /g;'\
p;}' Makefile | awk '{printf "\033[33m%-35s\033[0m%s\n", $$1, substr($$0,length($$1)+1)}' -e 'p;}' Makefile | awk '{printf "\033[33m%-35s\033[0m%s\n", $$1, substr($$0,length($$1)+1)}'
# Zig commands # Zig commands