From 03b2c61861219734ca85ed794e1db3cb7a14e7ac Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 24 Mar 2023 11:03:51 -0400 Subject: [PATCH] Makefile: add the ability to DEBUG the `make` build Signed-off-by: Vincent Batts --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index e8802b1b9d3..8dc5ceb98a4 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +ifeq (,$(shell echo $$DEBUG)) +else +SHELL = bash -x +endif + # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) GOBIN=$(shell go env GOPATH)/bin