Skip to content

Commit fa3d483

Browse files
committed
v0.2.0
1 parent afda8b2 commit fa3d483

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Diff for: Makefile

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1-
VERSION := 0.1.1
2-
BIN_NAME := bin/gcsproxy
1+
VERSION := 0.2.0
2+
BIN_NAME := gcsproxy
33

44
GOFILES_NOVENDOR := $(shell find . -type f -name '*.go' -not -path "*/vendor/*")
55
GOPACKAGES_NOVENDOR := $(shell glide nv)
66

7-
all: $(BIN_NAME)
7+
all: bin/$(BIN_NAME)
88

9-
$(BIN_NAME): $(GOFILES_NOVENDOR)
9+
bin/$(BIN_NAME): $(GOFILES_NOVENDOR)
1010
go build -o $@ .
1111

1212
build-cross: $(GOFILES_NOVENDOR)
13-
GOOS=linux GOARCH=amd64 go build -o bin/linux/amd64/$(BIN_NAME)-$(VERSION)/$(BIN_NAME) .
14-
GOOS=darwin GOARCH=amd64 go build -o bin/darwin/amd64/$(BIN_NAME)-$(VERSION)/$(BIN_NAME) .
15-
16-
dist: build-cross
17-
cd bin/linux/amd64 && tar zcvf $(BIN_NAME)-linux-amd64-$(VERSION).tar.gz $(BIN_NAME)-$(VERSION)
18-
cd bin/darwin/amd64 && tar zcvf $(BIN_NAME)-darwin-amd64-$(VERSION).tar.gz $(BIN_NAME)-$(VERSION)
13+
GOOS=linux GOARCH=amd64 go build -o dist/$(BIN_NAME)_$(VERSION)_amd64_linux
14+
GOOS=darwin GOARCH=amd64 go build -o dist/$(BIN_NAME)_$(VERSION)_amd64_darwin
1915

2016
deps:
2117
glide install

0 commit comments

Comments
 (0)