BUILD: makefile: adjust the sed expression of "make help" for solaris
Solaris's sed doesn't take the 'p' argument on the 's' command so
nothing is printed. Just passing ';p' fixes this without affecting
other implementations. Additionally, optional characters cannot be
matched using a question mark, which is always searched verbatim, so
the leading '#' wasn't stripped. Using \{0,1\} works fine everywhere
so let's use this instead.
(cherry picked from commit e8d0719924cd842a608c9a612bab7f5718777a3d)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
diff --git a/Makefile b/Makefile
index 17beb58..ba4be95 100644
--- a/Makefile
+++ b/Makefile
@@ -810,7 +810,7 @@
DEP = $(INCLUDES) .build_opts
help:
- $(Q)sed -ne "/^[^#]*$$/q;s/^# \?\(.*\)/\1/p" Makefile
+ $(Q)sed -ne "/^[^#]*$$/q;s/^# \{0,1\}\(.*\)/\1/;p" Makefile
$(Q)echo; \
if [ -n "$(TARGET)" ]; then \
if [ -n "$(set_target_defaults)" ]; then \