Skip to content

Commit

Permalink
Merge commit '14277afb72e004f442a0ad6b3cf171216fe93fef' into use-vend…
Browse files Browse the repository at this point in the history
…or-dir
  • Loading branch information
pohly committed Nov 4, 2019
2 parents f3c2cd1 + 14277af commit 3fe66b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release-tools/build.make
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))

build-%: check-go-version-go
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go $(GOFLAGS_VENDOR) build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
CGO_ENABLED=0 GOOS=linux go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
if [ "$$ARCH" = "amd64" ]; then \
CGO_ENABLED=0 GOOS=windows go $(GOFLAGS_VENDOR) build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./cmd/$* ; \
CGO_ENABLED=0 GOOS=windows go build $(GOFLAGS_VENDOR) -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$*.exe ./cmd/$* ; \
fi

container-%: build-%
Expand Down Expand Up @@ -106,13 +106,13 @@ test: check-go-version-go
test: test-go
test-go:
@ echo; echo "### $@:"
go $(GOFLAGS_VENDOR) test `go list ./... | grep -v -e 'vendor' -e '/test/e2e$$' $(TEST_GO_FILTER_CMD)` $(TESTARGS)
go test $(GOFLAGS_VENDOR) `go list ./... | grep -v -e 'vendor' -e '/test/e2e$$' $(TEST_GO_FILTER_CMD)` $(TESTARGS)

.PHONY: test-vet
test: test-vet
test-vet:
@ echo; echo "### $@:"
go $(GOFLAGS_VENDOR) vet `go list ./... | grep -v vendor $(TEST_VET_FILTER_CMD)`
go test $(GOFLAGS_VENDOR) `go list ./... | grep -v vendor $(TEST_VET_FILTER_CMD)`

.PHONY: test-fmt
test: test-fmt
Expand Down

0 comments on commit 3fe66b5

Please sign in to comment.