From 48d683be776a8f04fb8aa500f05528a0ca7eb607 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Sat, 18 Nov 2017 07:51:15 +0000 Subject: [PATCH] add checksum generation to makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0290486..26234eb 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,12 @@ build-dev: go build -ldflags "-w -X main.version=$(VERSION)-dev -X main.build=$(BUILD) -extldflags=$(EXT_LD_FLAGS)" build-all: - mkdir -p build + mkdir -p _build GOOS=darwin GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-darwin-amd64 GOOS=linux GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-linux-amd64 GOOS=linux GOARCH=arm go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-linux-arm GOOS=linux GOARCH=arm64 go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-linux-arm64 + cd _build; sha256sum * > sha256sums.txt image: docker build -t ctop -f Dockerfile .