2019-03-26 23:26:54 +01:00
|
|
|
VERSION=`git describe --tags --dirty --always`
|
|
|
|
|
2019-03-28 23:18:58 +01:00
|
|
|
GOFLAGS=-ldflags "-X main.version=${VERSION}" -asmflags -trimpath
|
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
|