
BUF?=buf

all: lint format build

.PHONY:
lint:
	$(BUF) lint protos

format:
	$(BUF) format -w protos

.PHONY:
build: generate generated/descriptor.pb

.PHONY:
generate:
	$(BUF) generate protos

generated/descriptor.pb:
	$(BUF) build protos -o "$@"

.PHONY:
clean:
	rm -rf generated

.PHONY:
breaking:
	$(BUF) breaking protos --against "ssh://git@git.awardit.dev/apis/gRPC.git#branch=main"
