diff --git a/makefiles/color.inc.mk b/makefiles/color.inc.mk index ea494442db..4e14ea3ea0 100644 --- a/makefiles/color.inc.mk +++ b/makefiles/color.inc.mk @@ -27,3 +27,11 @@ ifneq ($(CC_NOCOLOR),1) endif endif endif + +# Colorizer functions: +# These functions wrap a block of text in $(COLOR_X)...$(COLOR_RESET). +# Do not nest calls to this functions or the colors will be wrong. +c_green = $(COLOR_GREEN)$(1)$(COLOR_RESET) +c_red = $(COLOR_RED)$(1)$(COLOR_RESET) +c_yellow = $(COLOR_YELLOW)$(1)$(COLOR_RESET) +c_purple = $(COLOR_PURPLE)$(1)$(COLOR_RESET)