SERVICES := edge auth record library chatbot content worker
SERVICE ?= edge

.PHONY: fmt vet test lint build tidy run

fmt:
	gofmt -w .

vet:
	go vet ./...

test:
	go test ./...

lint:
	golangci-lint run --timeout 5m

build:
	GOFLAGS=-p=1 go build ./...

tidy:
	go mod tidy

run:
	go run ./cmd/$(SERVICE)
