diff --git a/blog-backend/Makefile b/blog-backend/Makefile index f00e1df2..fd3d89dc 100644 --- a/blog-backend/Makefile +++ b/blog-backend/Makefile @@ -34,13 +34,12 @@ ent: # generate protobuf api go code api: - cd $(lastword $(dir $(realpath $(SRCS_MK))));\ - make api; + buf generate # generate OpenAPI v3 docs. openapi: - cd $(lastword $(dir $(realpath $(SRCS_MK))));\ - make openapi; + buf generate --path api/admin/service/v1 --template api/admin/service/v1/buf.openapi.gen.yaml + buf generate --path api/front/service/v1 --template api/front/service/v1/buf.openapi.gen.yaml # initialize develop environment init: