GO ?= go

.PHONY: fmt test vet build integration
fmt:
	$(GO) fmt ./...
	cd sdk/go && $(GO) fmt ./...

test:
	$(GO) test -race ./...
	cd sdk/go && $(GO) test ./...

vet:
	$(GO) vet ./...
	cd sdk/go && $(GO) vet ./...

build:
	$(GO) build -o bin/orbit ./cmd/orbit
	$(GO) build -o bin/orbit-migrate ./cmd/orbit-migrate

integration:
	./scripts/test-mysql.sh
