mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 14:06:00 +01:00
Add colored GCC output
Signed-off-by: Benoît Taine <ork@olol.eu>
This commit is contained in:
parent
1eec4a683f
commit
932b83e6b1
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ COLOR_NORMAL = `$(TPUT) sgr0`
|
||||||
COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3`
|
COLOR_ACTION = `$(TPUT) bold``$(TPUT) setaf 3`
|
||||||
COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2`
|
COLOR_COMMENT = `$(TPUT) bold``$(TPUT) setaf 2`
|
||||||
COLOR_BRACKET = `$(TPUT) setaf 4`
|
COLOR_BRACKET = `$(TPUT) setaf 4`
|
||||||
|
CC += -fdiagnostics-color=always
|
||||||
define colorecho
|
define colorecho
|
||||||
@echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL)
|
@echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] "$(COLOR_COMMENT)$2$(COLOR_BRACKET) $(COLOR_NORMAL)
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue