wesher/Makefile

19 lines
456 B
Makefile
Raw Normal View History

VERSION := $(shell git describe --tags --dirty --always)
2019-03-26 23:26:54 +01:00
GOFLAGS := -ldflags "-X main.version=$(VERSION)" -trimpath
GOARCHES := $(shell go env GOARCH)
2019-03-26 23:26:54 +01:00
build:
$(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
tests/e2e.sh
clean:
rm -f wesher wesher-* wesher.sha256sums
.PHONY: build release e2e clean