github.com/codeready-toolchain/api@v0.0.0-20240507023248-73662d6db2c5/make/go.mk (about) 1 # enable Go modules 2 GO111MODULE?=on 3 export GO111MODULE 4 GO?=go 5 6 # By default the project should be build under GOPATH/src/github.com/<orgname>/<reponame> 7 GO_PACKAGE_ORG_NAME ?= $(shell basename $$(dirname $$PWD)) 8 GO_PACKAGE_REPO_NAME ?= $(shell basename $$PWD) 9 GO_PACKAGE_PATH ?= github.com/${GO_PACKAGE_ORG_NAME}/${GO_PACKAGE_REPO_NAME} 10 11 .PHONY: build 12 ## Build 13 build: 14 $(Q)CGO_ENABLED=0 GOARCH=amd64 GOOS=linux \ 15 $(GO) build github.com/codeready-toolchain/api/api/v1alpha1/