From d9978b250cbd6dc602e93905200256f7e62a68de Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Tue, 29 Aug 2023 21:00:31 +0200 Subject: [PATCH] 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 ``` --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c7b2d36c..c0854322 100644 --- a/Makefile +++ b/Makefile @@ -5,14 +5,14 @@ ## Display this help screen help: @printf "\e[36m%-35s %s\e[0m\n" "Command" "Usage" - @sed -n '/^## /{\ - s/## //g;\ - h;\ - n;\ - s/:.*//g;\ - G;\ - s/\n/ /g;\ - p;}' Makefile | awk '{printf "\033[33m%-35s\033[0m%s\n", $$1, substr($$0,length($$1)+1)}' + @sed -n -e '/^## /{'\ + -e 's/## //g;'\ + -e 'h;'\ + -e 'n;'\ + -e 's/:.*//g;'\ + -e 'G;'\ + -e 's/\n/ /g;'\ + -e 'p;}' Makefile | awk '{printf "\033[33m%-35s\033[0m%s\n", $$1, substr($$0,length($$1)+1)}' # Zig commands