[Makefile] Do nothing fancy when debugging Makefiles with VERBOSE=1

Reviewed By: jvillard

Differential Revision: D4851241

fbshipit-source-id: 6d761db
master
Mehdi Bouaziz 8 years ago committed by Facebook Github Bot
parent 07c9e71399
commit 0bea163f77

@ -123,6 +123,11 @@ MAX_PID_SIZE = \
# $(1) is a string describing the command # $(1) is a string describing the command
# $(2) is the command to run # $(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 # 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. # 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'; \ printf '$(TERM_RESET)\n'; \
fi fi
endef endef
endif

Loading…
Cancel
Save