зеркало из https://github.com/Azure/ARO-RP.git
18 строки
376 B
Makefile
18 строки
376 B
Makefile
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
|
|
|
|
generate:
|
|
go generate ./...
|
|
|
|
image:
|
|
go get github.com/openshift/imagebuilder/cmd/imagebuilder
|
|
imagebuilder -f Dockerfile -t rp:latest .
|
|
|
|
test: generate
|
|
go test ./...
|
|
|
|
.PHONY: clean generate image rp test
|