From b3bc9a913484fa0e06a9849152d5f6231972c2a3 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Thu, 28 Apr 2016 22:44:43 -0700 Subject: [PATCH] feat(Makefile): go build optimizations --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fd5e64151..8bdf29859 100644 --- a/Makefile +++ b/Makefile @@ -15,13 +15,11 @@ GOFLAGS := BINDIR := ./bin BINARIES := helm tiller -include versioning.mk - .PHONY: all all: build .PHONY: build -build: GOFLAGS += -a -installsuffix cgo +build: GOFLAGS += -i build: @for i in $(BINARIES); do \ CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO) build -o $(BINDIR)/$$i $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$$i || exit 1; \ @@ -38,6 +36,7 @@ check-docker: docker-binary: GOOS = linux docker-binary: GOARCH = amd64 docker-binary: BINDIR = ./rootfs +docker-binary: GOFLAGS += -a -installsuffix cgo docker-binary: build .PHONY: docker-build @@ -71,3 +70,4 @@ coverage: bootstrap: glide install +include versioning.mk