From cfddc0a58963d4d06d5a4e8a40cb8b704e1ed1e3 Mon Sep 17 00:00:00 2001 From: Mazet Laurent Date: Mon, 28 Apr 2025 10:36:01 +0200 Subject: [PATCH] fix makefile issue with mawk --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index d55bffc..1190143 100644 --- a/makefile +++ b/makefile @@ -39,7 +39,7 @@ endif # Targets -ALLEXE = $(shell for f in *.c; do grep -q '/\*\slinker:' $$f && echo $${f/.c}; done) +ALLEXE = $(shell for f in *.c; do grep -q '/\*\s*linker:' $$f && echo $${f/.c}; done) SHELL = bash @@ -60,7 +60,7 @@ INSTALL = test -d `dirname $(2)` || $(call MKDIR, `dirname $(2)`) && cp -pa $(1) VALID = $(call TITLE, $(1)) && $(2) && $(call PASS, SUCCESS) || { $(call FAIL, FAILED); test; } -GETCOMMENTS = awk '/\/\*\s*$(1):/,/\*\// { sub(/.*\/\*\s*$(1):/, ""); sub (/\s*\*\/.*/, ""); print } /\/\/\s*$(1):/ {sub (/.*\/\/\s*$(1):/, ""); print }' $(2) +GETCOMMENTS = awk '/\/\*[ \t]*$(1):/,/\*\// { sub(/.*\/\*[ \t]*$(1):/, ""); sub (/[ \t]*\*\/.*/, ""); print } /\/\/[ \t]*$(1):/ {sub (/.*\/\/[ \t]*$(1):/, ""); print }' $(2) #GETCOMMENTS = perl -- getcomments.pl -p='$(1):\s' -f='%' $(2) ## Generic rules -- 2.30.2