X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4b53640c5776c19703debbb7f95ca5a876b9cc83..d0a84e4ca82c7705ed11e515ad0af9ad2b42e4a8:/include/verbose.mk diff --git a/include/verbose.mk b/include/verbose.mk index 36e59904e..fed83d6fb 100644 --- a/include/verbose.mk +++ b/include/verbose.mk @@ -25,11 +25,11 @@ ifeq ($(IS_TTY),1) _N:=\\033[m endif -define MESSAGE +ifneq ($(KBUILD_VERBOSE),99) + define MESSAGE printf "$(_Y)%s$(_N)\n" "$(1)" >&3 -endef + endef -ifneq ($(KBUILD_VERBOSE),99) ifeq ($(QUIET),1) ifneq ($(CURDIR),$(TOPDIR)) _DIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) @@ -48,4 +48,8 @@ ifneq ($(KBUILD_VERBOSE),99) endif .SILENT: $(MAKECMDGOALS) +else + define MESSAGE + printf "%s\n" "$(1)" + endef endif