1
0
Fork 0
golang-forgejo-forgejo-cont.../Makefile
Daniel Baumann 6483251b09
Adding upstream version 0.0~git20191008.06d1c00.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-18 13:18:33 +02:00

12 lines
269 B
Makefile

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;