diff options
author | Damjan Marion <damarion@cisco.com> | 2016-12-22 18:08:33 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2016-12-22 21:32:50 +0000 |
commit | 207a322dea0a477565257005a174c4765da89d31 (patch) | |
tree | 885227885b79f4051d7dca8ac5cc90318afd1729 /vpp-api | |
parent | 504b83009a00d70c777c04014967494642074d52 (diff) |
api: save some typing when adding new api files
Change-Id: Ia994b723eafe8ab41c1c3031a7f7cd1853554128
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp-api')
-rw-r--r-- | vpp-api/java/Makefile.am | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/vpp-api/java/Makefile.am b/vpp-api/java/Makefile.am index e07e038a..92b8c264 100644 --- a/vpp-api/java/Makefile.am +++ b/vpp-api/java/Makefile.am @@ -83,48 +83,19 @@ packagedir_jvpp_core = io/fd/vpp/jvpp/core BUILT_SOURCES += jvpp-core/io_fd_vpp_jvpp_core_JVppCoreImpl.h +JSON_FILES = \ + $(prefix)/../vpp/vpp-api/vpe.api.json \ + $(wildcard $(prefix)/../vnet/vnet/*.api.json) + jvpp-core/io_fd_vpp_jvpp_core_JVppCoreImpl.h: \ jvpp-registry/io_fd_vpp_jvpp_VppJNIConnection.h \ - $(prefix)/../vnet/vnet/af_packet.api.json \ - $(prefix)/../vnet/vnet/netmap.api.json \ - $(prefix)/../vnet/vnet/vhost_user.api.json \ - $(prefix)/../vpp/vpp-api/vpe.api.json \ - $(prefix)/../vnet/vnet/gre.api.json \ - $(prefix)/../vnet/vnet/ip.api.json \ - $(prefix)/../vnet/vnet/l2tp.api.json \ - $(prefix)/../vnet/vnet/tap.api.json \ - $(prefix)/../vnet/vnet/vxlan.api.json \ - $(prefix)/../vnet/vnet/vxlan_gpe.api.json \ - $(prefix)/../vnet/vnet/tap.api.json \ - $(prefix)/../vnet/vnet/bfd.api.json \ - $(prefix)/../vnet/vnet/ipsec.api.json \ - $(prefix)/../vnet/vnet/ipsec_gre.api.json \ - $(prefix)/../vnet/vnet/lisp.api.json \ - $(prefix)/../vnet/vnet/lisp_gpe.api.json + $(JSON_FILES) cp -rf @srcdir@/jvpp-core/* -t jvpp-core/ mkdir -p jvpp-core/target cd jvpp-core \ && mkdir -p types dto future callfacade callback notification \ && @srcdir@/jvpp/gen/jvpp_gen.py --plugin_name core \ - -i $(prefix)/../vpp/vpp-api/vpe.api.json \ - $(prefix)/../vnet/vnet/af_packet.api.json \ - $(prefix)/../vnet/vnet/netmap.api.json \ - $(prefix)/../vnet/vnet/vhost_user.api.json \ - $(prefix)/../vnet/vnet/gre.api.json \ - $(prefix)/../vnet/vnet/interface.api.json \ - $(prefix)/../vnet/vnet/l2.api.json \ - $(prefix)/../vnet/vnet/l2tp.api.json \ - $(prefix)/../vnet/vnet/map.api.json \ - $(prefix)/../vnet/vnet/ip.api.json \ - $(prefix)/../vnet/vnet/span.api.json \ - $(prefix)/../vnet/vnet/tap.api.json \ - $(prefix)/../vnet/vnet/vxlan.api.json \ - $(prefix)/../vnet/vnet/vxlan_gpe.api.json \ - $(prefix)/../vnet/vnet/bfd.api.json \ - $(prefix)/../vnet/vnet/ipsec.api.json \ - $(prefix)/../vnet/vnet/ipsec_gre.api.json \ - $(prefix)/../vnet/vnet/lisp.api.json \ - $(prefix)/../vnet/vnet/lisp_gpe.api.json \ + -i $(JSON_FILES) \ && cp -rf types dto future callfacade callback notification *.java -t $(packagedir_jvpp_core) \ && rm -rf types dto future callfacade callback notification *.java |