From: R. Diez Date: Mon, 21 Jan 2019 18:32:06 +0000 (+0000) Subject: build: Honour NO_COLOR in include/scan.mk X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eabc1ddc4541019cf3e4c10b3a15c0710d87bca3;p=openwrt%2Fstaging%2Fjogo.git build: Honour NO_COLOR in include/scan.mk The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. Hi all: This is my first OpenWrt patch. I am a clean, pure newbie! 8-) Honour NO_COLOR in Makefile function 'progress' in include/scan.mk, in the same way that include/verbose.mk does. Signed-off-by: R. Diez --- diff --git a/include/scan.mk b/include/scan.mk index e6b21b27b0..724dbfaf17 100644 --- 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 :;