Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
daichirata committed Jan 9, 2018
1 parent afda8b2 commit fa3d483
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fa3d483

Please sign in to comment.