aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 02:12:32 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 02:12:32 +0900
commit2b9de78cf20faa8d3ae8cd31a8e9d1b7f3ed9aef (patch)
treec381d9479e3542e13512c696ad0859b141f51549 /backend/Makefile
parentab2a49654a7964bf9e6222b17676ca87588b88d8 (diff)
parent7468748c141943fa000edea4098d54bf3cdff55e (diff)
downloadphperkaigi-2025-albatross-2b9de78cf20faa8d3ae8cd31a8e9d1b7f3ed9aef.tar.gz
phperkaigi-2025-albatross-2b9de78cf20faa8d3ae8cd31a8e9d1b7f3ed9aef.tar.zst
phperkaigi-2025-albatross-2b9de78cf20faa8d3ae8cd31a8e9d1b7f3ed9aef.zip
Merge branch '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