aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 02:11:02 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 02:11:02 +0900
commit6603d3ea5a54647e8eda8ec253835eb7a36e5eb2 (patch)
tree3a1e823bf464d5b291c0a1cdf004af72eeb10de1 /backend/Makefile
parentec5fa50956c7f7f7f57c2dde4fb85ad0f3eb441f (diff)
downloadiosdc-japan-2025-albatross-6603d3ea5a54647e8eda8ec253835eb7a36e5eb2.tar.gz
iosdc-japan-2025-albatross-6603d3ea5a54647e8eda8ec253835eb7a36e5eb2.tar.zst
iosdc-japan-2025-albatross-6603d3ea5a54647e8eda8ec253835eb7a36e5eb2.zip
backend: openapi
Diffstat (limited to 'backend/Makefile')
-rw-r--r--backend/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/Makefile b/backend/Makefile
index cae3b16..8213e5d 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -1,3 +1,15 @@
+.PHONY: fmt
+fmt:
+ go fmt ./...
+
+.PHONY: check
+check:
+ go build -o /dev/null ./...
+
+.PHONY: oapi-codegen
+oapi-codegen:
+ go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config oapi-codegen.yaml ../openapi.yaml
+
.PHONY: sqlc
sqlc:
go run github.com/sqlc-dev/sqlc/cmd/sqlc generate