aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/strk.kbt.io/projects/go/libravatar/Makefile
blob: 2a70ddc72c83d146b0707b442715a5356270131b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PACKAGES ?= $(shell go list ./...)

.PHONY: check
check: lint
	go test

.PHONY: lint
lint:
	@which golint > /dev/null; if [ $$? -ne 0 ]; then \
		go get -u github.com/golang/lint/golint; \
	fi
	@for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;