This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/main by this push:
new b5160b1 Format files after code generation
b5160b1 is described below
commit b5160b1603c33bdcf94bce762175239eb2bd45f9
Author: Gao Hongtao <[email protected]>
AuthorDate: Wed May 12 20:49:34 2021 +0800
Format files after code generation
Signed-off-by: Gao Hongtao <[email protected]>
---
Makefile | 5 +++++
api/fbs/Makefile | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a607d00..490aeb1 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,11 @@ PROJECTS := banyand
clean: TARGET=clean test-clean
clean: default ## Clean artifacts in all projects
+generate: ## Generate API codes
+ $(MAKE) -C api/fbs generate
+ $(MAKE) license-fix
+ $(MAKE) format
+
build: TARGET=all
build: PROJECTS:=$(PROJECTS)
build: default ## Build all projects
diff --git a/api/fbs/Makefile b/api/fbs/Makefile
index 86af690..a775e9c 100644
--- a/api/fbs/Makefile
+++ b/api/fbs/Makefile
@@ -18,5 +18,5 @@
VERSION := v1
-build:
+generate:
flatc --go --gen-onefile --go-namespace $(VERSION) -o $(VERSION)
$(VERSION)/*.fbs