30 lines
495 B
Makefile
30 lines
495 B
Makefile
|
|
GO_COMPILER_OPTS = -a -tags netgo -ldflags '-w -extldflags "-static"'
|
|
|
|
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 {} \;
|
|
|
|
clean:
|
|
go clean
|
|
|
|
deps:
|
|
go get -u github.com/eyedeekay/eeproxy
|
|
|
|
test:
|
|
mkdir -p testdir && cd testdir && \
|
|
../eeProxy
|
|
|