We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb7154e commit 5fd455bCopy full SHA for 5fd455b
Makefile
@@ -1,6 +1,7 @@
1
COMMIT = $(shell git describe --always)
2
VERSION = $(shell grep Version cli/version.go | sed -E 's/.*"(.+)"$$/\1/')
3
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
4
+GOXOSARCH ?= "darwin/amd64 linux/amd64 linux/arm64 windows/amd64"
5
6
default: build
7
@@ -9,7 +10,7 @@ build:
9
10
go build -ldflags "-X main.GitCommit=$(COMMIT)" -o bin/exporter_proxy .
11
12
buildx:
- gox -ldflags "-X main.GitCommit=$(COMMIT)" -output "bin/v$(VERSION)/{{.Dir}}_{{.OS}}_{{.Arch}}" -arch "amd64" -os "linux darwin" .
13
+ gox -ldflags "-X main.GitCommit=$(COMMIT)" -output "bin/v$(VERSION)/{{.Dir}}_{{.OS}}_{{.Arch}}" -osarch $(GOXOSARCH) .
14
15
lint:
16
golint ${GOFILES_NOVENDOR}
0 commit comments