From 0bea163f772a0d6ca239d321667db77a19208771 Mon Sep 17 00:00:00 2001 From: Mehdi Bouaziz Date: Tue, 11 Apr 2017 04:15:01 -0700 Subject: [PATCH] [Makefile] Do nothing fancy when debugging Makefiles with VERBOSE=1 Reviewed By: jvillard Differential Revision: D4851241 fbshipit-source-id: 6d761db --- Makefile.config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.config b/Makefile.config index 61151d527..3032f63ea 100644 --- a/Makefile.config +++ b/Makefile.config @@ -123,6 +123,11 @@ MAX_PID_SIZE = \ # $(1) is a string describing the command # $(2) is the command to run # +ifeq ($(VERBOSE),1) +define silent_on_success + $(2) +endef +else # Run and time the command and redirect its stdout and stderr to files. Display info about the # command only in case of error. Try to be as helpful as possible in the error case. # @@ -172,3 +177,4 @@ define silent_on_success printf '$(TERM_RESET)\n'; \ fi endef +endif