Skip to content

Commit

Permalink
Makefile: support passing build tags via environment
Browse files Browse the repository at this point in the history
build tags can be passed via GO_BUILDTAGS environment variable.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
  • Loading branch information
metux committed Aug 4, 2023
1 parent 0701e9b commit 1caa37a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
# limitations under the License.

PACKAGES=$(shell go list ./... | grep -v /vendor/)
GO_TAGS=$(if $(GO_BUILDTAGS),-tags "$(strip $(GO_BUILDTAGS))",)

all: cgutil
go build -v
go build -v $(GO_TAGS)

cgutil:
cd cmd/cgctl && go build -v
cd cmd/cgctl && go build -v $(GO_TAGS)

proto:
protobuild --quiet ${PACKAGES}
Expand Down

0 comments on commit 1caa37a

Please sign in to comment.