From abb027d8def2c41de89e378c0bf6570353b3aa79 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 8 Dec 2016 14:16:09 +0800 Subject: [PATCH] update makefile. Signed-off-by: Bo-Yi Wu --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1b793d5..a8496c8 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ release-build: @which gox > /dev/null; if [ $$? -ne 0 ]; then \ go get -u github.com/mitchellh/gox; \ fi - gox -os="$(TARGETS)" -arch="amd64 386" -tags="$(TAGS)" -ldflags="-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}" + gox -os="$(TARGETS)" -arch="amd64 386" -tags="$(TAGS)" -ldflags="$(EXTLDFLAGS)-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}" release-copy: $(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));) @@ -117,7 +117,6 @@ release-copy: release-check: cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;) - docker_build: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags '$(TAGS)' -ldflags "$(EXTLDFLAGS)-s -w $(LDFLAGS)" -o bin/$(EXECUTABLE)