mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-09-21 10:21:20 +02: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_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 New Issue
Block a user