k3s/vendor/github.com/opencontainers/selinux/Makefile

19 lines
290 B
Makefile
Raw Normal View History

2019-01-12 04:58:27 +00:00
BUILDTAGS := selinux
check-gopath:
ifndef GOPATH
$(error GOPATH is not set)
endif
.PHONY: test
test: check-gopath
go test -timeout 3m -tags "${BUILDTAGS}" ${TESTFLAGS} -v ./...
.PHONY:
lint:
@out="$$(golint go-selinux)"; \
if [ -n "$$out" ]; then \
echo "$$out"; \
exit 1; \
fi