From 7ec222895cff319d197d6443884b7d19b923c8ce Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 18 Jun 2017 09:54:07 -0400 Subject: [PATCH] Update makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index da94f798..329d03d3 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ ADDITIONAL_GO_LINKER_FLAGS := $(shell GOOS=$(shell go env GOHOSTOS) \ GOBIN ?= $(shell go env GOPATH)/bin # Builds micro after checking dependencies but without updating the runtime -build: +build: update go build -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro # Builds micro after building the runtime and checking dependencies @@ -22,7 +22,7 @@ build-quick: go build -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro # Same as 'build' but installs to $GOBIN afterward -install: +install: update go install -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro # Same as 'build-all' but installs to $GOBIN afterward @@ -32,6 +32,10 @@ install-all: runtime install install-quick: go install -ldflags "-s -w -X main.Version=$(VERSION) -X main.CommitHash=$(HASH) -X 'main.CompileDate=$(DATE)' $(ADDITIONAL_GO_LINKER_FLAGS)" ./cmd/micro +update: + git pull + git submodule update + # Builds the runtime runtime: go get -u github.com/jteeuwen/go-bindata/...