Skip to content

Instantly share code, notes, and snippets.

@banyek
Created March 29, 2016 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banyek/39b5d0bf376c588ff6e2 to your computer and use it in GitHub Desktop.
Save banyek/39b5d0bf376c588ff6e2 to your computer and use it in GitHub Desktop.
all: build
deps:
GOPATH=$(shell pwd) go get github.com/go-sql-driver/mysql
GOPATH=$(shell pwd) go get github.com/koding/logging
GOPATH=$(shell pwd) go get gopkg.in/ini.v1
build: deps
GOPATH=$(shell pwd) go build -v -x binlogstreamer.go
linux: deps
GOPATH=$(shell pwd) GOOS=linux go build -v -x binlogstreamer.go
darwin: deps
GOPATH=$(shell pwd) GOOS=darwin go build -v -x binlogstreamer.go
clean:
rm -rf src/
rm -rf pkg/
rm -rf binlogstreamer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment