wesher/Makefile

22 lines
493 B
Makefile
Raw Permalink Normal View History

2019-11-26 20:58:46 +01:00
export CGO_ENABLED=0
VERSION := $(shell git describe --tags --dirty --always)
2019-03-26 23:26:54 +01:00
GOFLAGS := -ldflags "-X main.version=$(VERSION) -buildid=" -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
sha256sum wesher-* | tee wesher.sha256sums
2019-07-12 11:08:41 +02:00
2019-07-13 11:11:43 +02:00
e2e: build
tests/e2e.sh
clean:
rm -f wesher wesher-* wesher.sha256sums
2019-11-26 20:58:46 +01:00
.PHONY: build release e2e clean