summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVladimir Lavor <vlavor@cisco.com>2021-04-08 13:08:04 +0200
committerDamjan Marion <dmarion@me.com>2021-04-27 09:24:48 +0000
commit3ff1598846901e10ca837a77e33ce94594a93496 (patch)
tree6f884ef0159877e549c1d1dcbd59f93c13b93adb /Makefile
parent8e1384f7bf2e806e0d65d07af38da269ef1b8338 (diff)
misc: auto-generate go bindings
Type: feature Added target 'make go-api-files' creating compatible go bindings using JSON API definition and GoVPP binary API generator. Signed-off-by: Vladimir Lavor <vlavor@cisco.com> Change-Id: I5bae113b85eaf5ebda8e292d34c9826075ef19b5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0f0af4af008..9573d8222a7 100644
--- a/Makefile
+++ b/Makefile
@@ -216,6 +216,7 @@ help:
@echo " featurelist - dump feature list in markdown"
@echo " json-api-files - (re)-generate json api files"
@echo " json-api-files-debug - (re)-generate json api files for debug target"
+ @echo " go-api-files - (re)-generate golang api files"
@echo " docs - Build the Sphinx documentation"
@echo " docs-venv - Build the virtual environment for the Sphinx docs"
@echo " docs-clean - Remove the generated files from the Sphinx docs"
@@ -613,6 +614,10 @@ json-api-files:
json-api-files-debug:
$(WS_ROOT)/src/tools/vppapigen/generate_json.py --debug-target
+.PHONY: go-api-files
+go-api-files: json-api-files
+ $(WS_ROOT)/src/tools/vppapigen/generate_go.py
+
.PHONY: ctags
ctags: ctags.files
@ctags --totals --tag-relative=yes -L $<