Skip to content

Commit

Permalink
colors.mk: No duplicate make output in verbose mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudis authored and t-wissmann committed Feb 4, 2014
1 parent f9a893a commit 5e32daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colors.mk
Expand Up @@ -8,6 +8,8 @@ COLOR_FILE = `$(TPUT) bold``$(TPUT) setaf 2`
COLOR_BRACKET = $(COLOR_CLEAR)`$(TPUT) setaf 4`
endif

ifneq ($(VERBOSE),)
define colorecho
@echo $(COLOR_BRACKET)" ["$(COLOR_ACTION)$1$(COLOR_BRACKET)"] " $(COLOR_FILE)$2$(COLOR_BRACKET)... $(COLOR_NORMAL)
endef
endif

0 comments on commit 5e32daa

Please sign in to comment.