aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 21:02:30 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 21:02:30 +0900
commitb05de1617c7ad323f582f7392e4e62c1f08af58e (patch)
treed9b79a1fa6fb57945383a71bd208d4ef8f0889de /Makefile
parent10b9be2c2a46b204f83be7d152ca62bf69e8843e (diff)
downloadiosdc-japan-2025-albatross-b05de1617c7ad323f582f7392e4e62c1f08af58e.tar.gz
iosdc-japan-2025-albatross-b05de1617c7ad323f582f7392e4e62c1f08af58e.tar.zst
iosdc-japan-2025-albatross-b05de1617c7ad323f582f7392e4e62c1f08af58e.zip
refactor: run code generation by `go generate`
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 4 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 7adf808..2361ac5 100644
--- a/Makefile
+++ b/Makefile
@@ -52,17 +52,7 @@ initdb:
make psql-query < ./backend/schema.sql
make psql-query < ./backend/fixtures/dev.sql
-.PHONY: openapi
-openapi: oapi-codegen openapi-typescript
-
-.PHONY: oapi-codegen
-oapi-codegen:
- cd backend; make oapi-codegen
-
-.PHONY: openapi-typescript
-openapi-typescript:
- cd frontend; make openapi-typescript
-
-.PHONY: sqlc
-sqlc:
- cd backend; make sqlc
+.PHONY: gen
+gen:
+ cd backend; make gen
+ cd frontend; npm run openapi-typescript