2019-11-26 20:58:46 +01:00
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
2019-07-13 10:48:16 +02:00
|
|
|
VERSION := $(shell git describe --tags --dirty --always)
|
2019-03-26 23:26:54 +01:00
|
|
|
|
2019-11-26 21:15:23 +01:00
|
|
|
GOFLAGS := -ldflags "-X main.version=$(VERSION) -buildid=" -trimpath
|
2019-07-13 10:48:16 +02:00
|
|
|
|
|
|
|
GOARCHES := $(shell go env GOARCH)
|
2019-03-26 23:26:54 +01:00
|
|
|
|
|
|
|
build:
|
2019-07-13 10:48:16 +02:00
|
|
|
$(foreach GOARCH,$(GOARCHES),GOARCH=$(GOARCH) go build ${GOFLAGS} -o wesher$(if $(filter-out $(GOARCH), $(GOARCHES)),-$(GOARCH));)
|
|
|
|
|
|
|
|
release: build
|
2019-07-12 11:08:41 +02:00
|
|
|
sha256sum wesher-* > wesher.sha256sums
|
|
|
|
|
2019-07-13 11:11:43 +02:00
|
|
|
e2e: build
|
2019-07-13 10:48:16 +02:00
|
|
|
tests/e2e.sh
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f wesher wesher-* wesher.sha256sums
|
|
|
|
|
2019-11-26 20:58:46 +01:00
|
|
|
.PHONY: build release e2e clean
|