wesher/Makefile

22 lines
493 B
Makefile

export CGO_ENABLED=0
VERSION := $(shell git describe --tags --dirty --always)
GOFLAGS := -ldflags "-X main.version=$(VERSION) -buildid=" -trimpath
GOARCHES := $(shell go env GOARCH)
build:
$(foreach GOARCH,$(GOARCHES),GOARCH=$(GOARCH) go build ${GOFLAGS} -o wesher$(if $(filter-out $(GOARCH), $(GOARCHES)),-$(GOARCH));)
release: build
sha256sum wesher-* | tee wesher.sha256sums
e2e: build
tests/e2e.sh
clean:
rm -f wesher wesher-* wesher.sha256sums
.PHONY: build release e2e clean