diff --git a/Makefile b/Makefile index a907f468d..751cde8bb 100644 --- a/Makefile +++ b/Makefile @@ -6,18 +6,18 @@ endif build: prepare $(GOBIN)/godep go build -o telegraf -ldflags \ - "-X main.Version $(VERSION)" \ + "-X main.Version=$(VERSION)" \ ./cmd/telegraf/telegraf.go build-linux-bins: prepare GOARCH=amd64 GOOS=linux $(GOBIN)/godep go build -o telegraf_linux_amd64 \ - -ldflags "-X main.Version $(VERSION)" \ + -ldflags "-X main.Version=$(VERSION)" \ ./cmd/telegraf/telegraf.go GOARCH=386 GOOS=linux $(GOBIN)/godep go build -o telegraf_linux_386 \ - -ldflags "-X main.Version $(VERSION)" \ + -ldflags "-X main.Version=$(VERSION)" \ ./cmd/telegraf/telegraf.go GOARCH=arm GOOS=linux $(GOBIN)/godep go build -o telegraf_linux_arm \ - -ldflags "-X main.Version $(VERSION)" \ + -ldflags "-X main.Version=$(VERSION)" \ ./cmd/telegraf/telegraf.go prepare: