1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00
policy-reporter/Makefile

26 lines
366 B
Makefile
Raw Normal View History

2021-02-19 23:58:01 +00:00
GO ?= go
BUILD ?= build
all: build
.PHONY: clean
clean:
rm -rf $(BUILD)
.PHONY: prepare
prepare:
mkdir -p $(BUILD)
2021-02-24 00:06:58 +00:00
.PHONY: test
test:
go test -v ./...
.PHONY: coverage
coverage:
go test -v ./... -covermode=count -coverprofile=coverage.out
2021-02-19 23:58:01 +00:00
.PHONY: build
build: prepare
CGO_ENABLED=0 $(GO) build -v -ldflags="-s -w" $(GOFLAGS) -o $(BUILD)/policyreporter .