From 4a766a276a2326d423916d4f984811eac6bb9462 Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Thu, 4 Mar 2021 08:33:07 +0100 Subject: [PATCH] config: Make COLORIZE a weak variable When running `make install COLORIZE=`, unwanted colorization would show up. I'm not entirely sure when this regression appeared, since I used to do that. Signed-off-by: Christophe de Dinechin --- config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 05a25b5..7309b33 100644 --- a/config.mk +++ b/config.mk @@ -259,7 +259,7 @@ SEDOPT_windows= -u # Colorize warnings, errors and progress information LINE_BUFFERED=--line-buffered COLOR_FILTER= | grep $(LINE_BUFFERED) -v -e "^true &&" $(COLORIZE) -COLORIZE= | sed $(SEDOPT_$(OS_NAME)) \ +COLORIZE?= | sed $(SEDOPT_$(OS_NAME)) \ -e 's/^\(.*[,:(]\{1,\}[0-9]*[ :)]*\)\([Ww]arning\)/$(POS_COLOR)\1$(WRN_COLOR)\2$(DEF_COLOR)/g' \ -e 's/^\(.*[,:(]\{1,\}[0-9]*[ :)]*\)\([Ee]rror\)/$(POS_COLOR)\1$(ERR_COLOR)\2$(DEF_COLOR)/g' \ -e 's/^\(\[BEGIN\]\)\(.*\)$$/$(STEP_COLOR)\1\2$(CLR_EOLINE)$(DEF_COLOR)/g' \