ARO-RP/Makefile

22 строки
526 B
Makefile
Исходник Обычный вид История

2019-11-18 09:24:26 +03:00
rp:
go build -ldflags "-X main.gitCommit=$(shell git rev-parse --short HEAD)$(shell [[ $$(git status --porcelain) = "" ]] || echo -dirty)" ./cmd/rp
clean:
rm -f rp
2019-11-21 05:32:34 +03:00
generate:
go generate ./...
2019-11-18 09:24:26 +03:00
image:
go get github.com/openshift/imagebuilder/cmd/imagebuilder
imagebuilder -f Dockerfile -t rp:latest .
2019-11-21 05:32:34 +03:00
test: generate
go vet ./...
./hack/verify/validate-code-format.sh
./hack/verify/validate-util.sh
go run ./hack/validate-imports/validate-imports.go cmd hack pkg
2019-11-21 05:32:34 +03:00
go test ./...
.PHONY: clean generate image rp test