2019-03-26 23:26:54 +01:00
|
|
|
VERSION=`git describe --tags --dirty --always`
|
|
|
|
|
2019-03-29 20:50:08 +01:00
|
|
|
GOFLAGS=-ldflags "-X main.version=${VERSION}" -gcflags=all=-trimpath=$(PWD) -asmflags=all=-trimpath=$(PWD)
|
2019-03-26 23:26:54 +01:00
|
|
|
|
|
|
|
build:
|
2019-03-28 23:18:58 +01:00
|
|
|
GOARCH=amd64 go build ${GOFLAGS} -o wesher-amd64 ${OPTS}
|
|
|
|
GOARCH=arm go build ${GOFLAGS} -o wesher-arm ${OPTS}
|
|
|
|
GOARCH=arm64 go build ${GOFLAGS} -o wesher-arm64 ${OPTS}
|
|
|
|
sha256sum wesher-* > wesher.sha256sums
|