resolve closer stuff

This commit is contained in:
idk 2018-12-25 05:08:54 -05:00
parent d045bf50f8
commit fb352512ec
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
3 changed files with 24 additions and 4 deletions

View file

@ -1,6 +1,19 @@
GO_COMPILER_OPTS = -a -tags netgo -ldflags '-w -extldflags "-static"'
build:
go build
go build $(GO_COMPILER_OPTS)
all: linux osx windows
linux:
GOOS=linux go build $(GO_COMPILER_OPTS) -o eeProxy
osx:
GOOS=darwin go build $(GO_COMPILER_OPTS) -o eeProxy.app
windows:
GOOS=windows go build $(GO_COMPILER_OPTS) -o eeProxy.exe
fmt:
find . -name '*.go' -exec gofmt -w {} \;
@ -10,3 +23,8 @@ clean:
deps:
go get -u github.com/eyedeekay/eeproxy
test:
mkdir -p testdir && cd testdir && \
../eeProxy