Skip to content

Commit c5b0d06

Browse files
author
Nicholas Thomson
committed
Rename to Go flags
1 parent 91b31d4 commit c5b0d06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ GO_LDFLAGS=-ldflags "-X $(IMPORT_PATH)/pkg/version.Version=$(VERSION) \
1616

1717
# We need to use the codegen tag when building and testing because the
1818
# aws-sdk-go/private/model/api package is gated behind a build tag "codegen"...
19-
GO_TAGS=-tags codegen
20-
GO_LOCAL_TAGS=-modfile=go.local.mod $(GO_TAGS)
19+
GO_CMD_FLAGS=-tags codegen
20+
GO_CMD_LOCAL_FLAGS=-modfile=go.local.mod $(GO_CMD_FLAGS)
2121

2222
.PHONY: all local-build-ack-generate build-ack-generate local-build-controller \
2323
build-controller test local-test build-controller-image \
@@ -27,12 +27,12 @@ all: test
2727

2828
build-ack-generate: ## Build ack-generate binary
2929
@echo -n "building ack-generate ... "
30-
@go build ${GO_TAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
30+
@go build ${GO_CMD_FLAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
3131
@echo "ok."
3232

3333
local-build-ack-generate: ## Build ack-generate binary using the local go.mod
3434
@echo -n "building ack-generate ... "
35-
@go build ${GO_LOCAL_TAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
35+
@go build ${GO_CMD_LOCAL_FLAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
3636
@echo "ok."
3737

3838
build-controller: build-ack-generate ## Generate controller code for SERVICE
@@ -56,10 +56,10 @@ check-versions: ## Checks the code-generator version matches the runtime depende
5656
@./scripts/check-versions.sh $(VERSION)
5757

5858
test: ## Run code tests
59-
go test ${GO_TAGS} ./...
59+
go test ${GO_CMD_FLAGS} ./...
6060

6161
local-test: ## Run code tests using the local go.mod
62-
go test ${GO_LOCAL_TAGS} ./...
62+
go test ${GO_CMD_LOCAL_FLAGS} ./...
6363

6464
help: ## Show this help.
6565
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \

0 commit comments

Comments
 (0)