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 <christophe@dinechin.org>
This commit is contained in:
parent
bdf6542c8b
commit
4a766a276a
|
@ -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' \
|
||||
|
|
Loading…
Reference in New Issue