export PATH := $(CURDIR)/_tools/bin:$(PATH)

all: deps lint test

deps:
	GOPATH=$(CURDIR)/_tools go install all
	go get -t ./...
	dep ensure

clean:
	rm -rf vendor

test:
	go test -race -cover ./...

bench:
	go test -run=XXX -bench=. -benchmem ./...

lint:
	gometalinter ./...
