File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- VERSION := 0.1.1
2- BIN_NAME := bin/ gcsproxy
1+ VERSION := 0.2.0
2+ BIN_NAME := gcsproxy
33
44GOFILES_NOVENDOR := $(shell find . -type f -name '* .go' -not -path "* /vendor/* ")
55GOPACKAGES_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
1212build-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
2016deps :
2117 glide install
You can’t perform that action at this time.
0 commit comments