frp/Makefile.cross-compiles

14 lines
339 B
Makefile
Raw Normal View History

2016-04-11 11:27:14 +02:00
export PATH := $(GOPATH)/bin:$(PATH)
export OLDGOPATH := $(GOPATH)
export GOPATH := $(shell pwd)/Godeps/_workspace:$(shell pwd):$(GOPATH)
all: build
build: gox app
2016-04-11 11:27:14 +02:00
gox:
2016-04-11 11:27:14 +02:00
GOPATH=$(OLDGOPATH) go get github.com/mitchellh/gox
app:
gox -osarch "darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" ./src/...