Edit Makefile

This commit is contained in:
Kok San 2015-10-05 16:19:07 +08:00
parent 9a16e22c80
commit 380a89228b
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
doesnotexist

View File

@ -2,7 +2,7 @@ UNAME := $(shell sh -c 'uname')
VERSION := $(shell sh -c 'git describe --always --tags') VERSION := $(shell sh -c 'git describe --always --tags')
build: prepare build: prepare
CGO_ENABLED=0 GOOS=linux ARCH=amd64 $(GOPATH)/bin/godep go build -a -installsuffix cgo \ CGO_ENABLED=0 $(GOPATH)/bin/godep go build -a -installsuffix cgo \
-o telegraf \ -o telegraf \
-ldflags \ -ldflags \
"-X main.Version $(VERSION)" \ "-X main.Version $(VERSION)" \