1
proto/Makefile
mya 689e96d4c1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: simplify workflow
2023-12-30 20:33:35 -06:00

34 lines
627 B
Makefile

define HELP_TEXT
Welcome!
Targets:
help provides help text
deps resolve dependencies
lint lint source for errors or breaking changes
legal prepends license to source code
generate generates swagger docs
endef
export HELP_TEXT
help:
@echo "$$HELP_TEXT"
deps:
buf mod update
lint:
buf lint
addlicense -check -f ./legal/header.txt -skip yaml -skip yml -skip xml .
legal: .legal
.legal:
addlicense -f ./legal/header.txt -skip yaml -skip yml -skip xml .
generate:
buf generate .
cd scripts && go run ./merge-swagger \
-output ../swagger.json \
../*/*/*.swagger.json \
../swagger/metadata.json