blob: f26ce606ad7df8a4811333b5e74985d3cf87d6b1 [file] [log] [blame]
KGO := CGO_ENABLED=0 GOOS=linux go build
.PHONY: default
default: frontend allgo
include ../go/skiaversion/skiaversion.mk
.PHONY: packages
packages:
go build -v ./go/...
# This is the quick version triggered by the presubmit script.
.PHONY: testgo
testgo:
go test ./go/... -short
.PHONY: bench
bench:
go test ./go/... -bench=. -run=NONE
.PHONY: test
test:
go test ./go/...
node_modules: package.json
npm install
.PHONY: frontend
frontend:
cd frontend && $(MAKE) web
.PHONY: allgo
allgo: skiaversion
go install -v ./cmd/...
.PHONY: k8s-release-skiacorrectness
k8s-release-skiacorrectness: build-static frontend
./k8s_release_skiacorrectness
.PHONY: release-goldctl-gcs
release-goldctl-gcs: build-static-goldctl
./release_goldctl
.PHONY: build-static-skiacorrectness
build-static-skiacorrectness: skiaversion
mkdir -p ./build
rm -f ./build/skiacorrectness_k8s
$(KGO) -o build/skiacorrectness_k8s -a ./cmd/skiacorrectness/main.go
.PHONY: build-static-goldctl
build-static-goldctl:
mkdir -p ./build
rm -f ./build/goldctl
$(KGO) -o build/goldctl -a ./cmd/goldctl/main.go
include ../webtools/webtools.mk