mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 00:03:49 +01:00
Add colored GCC output
Signed-off-by: Benoît Taine <ork@olol.eu>
This commit is contained in:
parent
1eec4a683f
commit
932b83e6b1
@ -10,6 +10,7 @@ COLOR_NORMAL = `$(TPUT) sgr0`
|
||||
COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3`
|
||||
COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2`
|
||||
COLOR_BRACKET = `$(TPUT) setaf 4`
|
||||
CC += -fdiagnostics-color=always
|
||||
define colorecho
|
||||
@echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL)
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user