aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/kevinburke/go.uuid/Makefile
blob: 344b2381e4e2c3026885c48ef19b9c366e090f28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
MEGACHECK := $(GOPATH)/bin/megacheck
UNAME = $(shell uname -s)
export GOROOT = $(shell go env GOROOT)

test:
	go test ./...

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

$(MEGACHECK):
ifeq ($(UNAME),Darwin)
	curl --silent --location --output $(MEGACHECK) https://github.com/kevinburke/go-tools/releases/download/2018-01-25/megacheck-darwin-amd64
else
	curl --silent --location --output $(MEGACHECK) https://github.com/kevinburke/go-tools/releases/download/2018-01-25/megacheck-linux-amd64
endif
	chmod +x $(MEGACHECK)

lint: $(MEGACHECK)
	$(MEGACHECK) ./...
	go vet ./...