projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
build: Honour NO_COLOR in include/scan.mk
[openwrt/staging/mkresin.git]
/
include
/
scan.mk
diff --git
a/include/scan.mk
b/include/scan.mk
index e6b21b27b009ce14f8683980add8d2be3bea9340..724dbfaf179f2bf343d36de38549c7b647a3dff5 100644
(file)
--- a/
include/scan.mk
+++ b/
include/scan.mk
@@
-19,9
+19,15
@@
else
endif
ifeq ($(IS_TTY),1)
- define progress
+ ifneq ($(strip $(NO_COLOR)),1)
+ define progress
printf "\033[M\r$(1)" >&2;
- endef
+ endef
+ else
+ define progress
+ :;
+ endef
+ endif
else
define progress
:;