.PHONY: run test test-license-client check build docker-build

run:
	go run ./cmd/server

test:
	go test ./...
	cd third_party/license-platform-client && go test ./...

test-license-client:
	cd third_party/license-platform-client && go test ./...

check:
	gofmt -w $$(find cmd internal web third_party/license-platform-client -name '*.go' -type f)
	go vet ./...
	go test -race ./...
	cd third_party/license-platform-client && go vet ./... && go test -race ./...

build:
	mkdir -p bin
	CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o bin/ai-disclosure ./cmd/server

docker-build:
	docker build -t ai-disclosure-standard:1.6.3-local .
