Files
wesher/Makefile
Leo Antunes e4a22c7ee5 improve build repeatability
still not quite there, but this should make it a bit easier

refs #2
2019-03-29 20:50:08 +01:00

9 lines
372 B
Makefile

VERSION=`git describe --tags --dirty --always`
GOFLAGS=-ldflags "-X main.version=${VERSION}" -gcflags=all=-trimpath=$(PWD) -asmflags=all=-trimpath=$(PWD)
build:
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