diff --git a/Makefile b/Makefile index cb484f175..de5695994 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ GITLAB_RUNNER ?= 19.3.0 OTELCOL_VERSION ?= 0.151.0 # Go and compilation related variables +export GOTOOLCHAIN ?= auto GOPATH ?= $(shell go env GOPATH) BUILD_DIR ?= out SOURCE_DIRS = cmd pkg @@ -34,6 +35,10 @@ GCFLAGS := all=-N -l GOOS := $(shell go env GOOS) GOARCH := $(shell go env GOARCH) +# Add default target +.PHONY: default +default: install + # Tools TOOLS_DIR := tools include tools/tools.mk @@ -57,10 +62,6 @@ define tkn_update sed -e 's%%$(1)%g' -e 's%%$(2)%g' tkn/template/infra-ibmcloud-ibm-gaudi.yaml > tkn/infra-ibmcloud-ibm-gaudi.yaml endef -# Add default target -.PHONY: default -default: install - # Create and update the vendor directory .PHONY: vendor vendor: