more build system cleanup
[openwrt.org/openwrt.git] / include / verbose.mk
blob:a/include/verbose.mk -> blob:b/include/verbose.mk
--- a/include/verbose.mk
+++ b/include/verbose.mk
@@ -26,7 +26,7 @@
 endif
 
 define MESSAGE
-	echo -e "$(_Y)$(1)$(_N)" >&3
+	/bin/echo -e "$(_Y)$(1)$(_N)" >&3
 endef
 
 ifneq ($(KBUILD_VERBOSE),99)
@@ -44,7 +44,7 @@
       MAKE:=&>/dev/null $(MAKE)
     endif
     export QUIET:=1
-    MAKE:=cmd() { $(MAKE) $$* || {  echo "make $$*: build failed. Please re-run make with V=99 to see what's going on"; false; } } 3>&1 4>&2; cmd
+    MAKE:=cmd() { $(MAKE) -s $$* || {  echo "make $$*: build failed. Please re-run make with V=99 to see what's going on"; false; } } 3>&1 4>&2; cmd
   endif
 
   .SILENT: $(MAKECMDGOALS)

comments