From fa3d4838bf196ddd7e2d4a33e462f54ca6b54b08 Mon Sep 17 00:00:00 2001 From: Daichi HIRATA Date: Wed, 10 Jan 2018 01:39:09 +0900 Subject: [PATCH] v0.2.0 --- Makefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 816a700..b9fb322 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,17 @@ -VERSION := 0.1.1 -BIN_NAME := bin/gcsproxy +VERSION := 0.2.0 +BIN_NAME := gcsproxy GOFILES_NOVENDOR := $(shell find . -type f -name '*.go' -not -path "*/vendor/*") GOPACKAGES_NOVENDOR := $(shell glide nv) -all: $(BIN_NAME) +all: bin/$(BIN_NAME) -$(BIN_NAME): $(GOFILES_NOVENDOR) +bin/$(BIN_NAME): $(GOFILES_NOVENDOR) go build -o $@ . build-cross: $(GOFILES_NOVENDOR) - GOOS=linux GOARCH=amd64 go build -o bin/linux/amd64/$(BIN_NAME)-$(VERSION)/$(BIN_NAME) . - GOOS=darwin GOARCH=amd64 go build -o bin/darwin/amd64/$(BIN_NAME)-$(VERSION)/$(BIN_NAME) . - -dist: build-cross - cd bin/linux/amd64 && tar zcvf $(BIN_NAME)-linux-amd64-$(VERSION).tar.gz $(BIN_NAME)-$(VERSION) - cd bin/darwin/amd64 && tar zcvf $(BIN_NAME)-darwin-amd64-$(VERSION).tar.gz $(BIN_NAME)-$(VERSION) + GOOS=linux GOARCH=amd64 go build -o dist/$(BIN_NAME)_$(VERSION)_amd64_linux + GOOS=darwin GOARCH=amd64 go build -o dist/$(BIN_NAME)_$(VERSION)_amd64_darwin deps: glide install