diff --git a/cmd/Makefile b/cmd/Makefile index da6b8514..132a0d91 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -3,4 +3,15 @@ ARCHS = amd64 arm64 OSs = linux darwin freebsd GO_COMPILE = CGO_ENABLED=1 $(GO) build -tags $(TAGS) -v -ldflags "$(LDFLAGS)" -o $@-$${os}-$${arch} + +OS := $(shell uname) + +ifeq ($(OS),Darwin) + +endif +ifeq ($(OS),Darwin) +GEN_HASH = shasum -a 256 $@-$${os}-$${arch} >> $(BINDIR)/sha256sums-$(BINARY).txt +else GEN_HASH = sha256sum $@-$${os}-$${arch} >> $(BINDIR)/sha256sums-$(BINARY).txt +endif +