diff options
author | 2016-09-16 00:56:06 +0000 | |
---|---|---|
committer | 2016-10-04 11:26:38 -0700 | |
commit | d65ee3a8a3e7f6fccea9f682b4171c1ca1228f5e (patch) | |
tree | 81bc3e7817bb923e80ec8fb68df1c3a2f317f7d0 /nsh-plugin/Makefile.am | |
parent | 24bb3c191a66d20624d550f9ea392f2873199e88 (diff) |
nsh-plugin deb packaging
Change-Id: I100f14fe2bc215beab8635cd987423599f15aaa0
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Diffstat (limited to 'nsh-plugin/Makefile.am')
-rw-r--r-- | nsh-plugin/Makefile.am | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/nsh-plugin/Makefile.am b/nsh-plugin/Makefile.am index 096eb90..bf24b6d 100644 --- a/nsh-plugin/Makefile.am +++ b/nsh-plugin/Makefile.am @@ -1,4 +1,3 @@ - # Copyright (c) <current-year> <your-organization> # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,3 +56,21 @@ pkg-rpm: all install cd $(srcdir)/packaging/rpm; \ rpmbuild -bb --define "_topdir $$PWD" \ --define "_plugin_prefix ${prefix}" vpp-nsh-plugin.spec + +pkg-deb: all install + DOTPREFIX=$$(readlink -f ${srcdir}/packaging/deb/debian); \ + echo DOTPREFIX $${DOTPREFIX}; \ + DOTPREFIX=$$(echo $${DOTPREFIX}| sed 's;[^\/]*;..;g'); \ + echo DOTPREFIX $${DOTPREFIX}; \ + echo ../../$${DOTPREFIX}/$(prefix)/lib/vpp_plugins/nsh_plugin.so /usr/lib/vpp_plugins > $(srcdir)/packaging/deb/debian/vpp-nsh-plugin.install; \ + echo ../../$${DOTPREFIX}/$(prefix)/lib/vpp_api_test_plugins/nsh_test_plugin.so /usr/lib/vpp_api_test_plugins >> $(srcdir)/packaging/deb/debian/vpp-nsh-plugin.install; \ + echo ../../$${DOTPREFIX}/$(prefix)/include/vpp-api/nsh_all_api_h.h /usr/include/vpp-api > $(srcdir)/packaging/deb/debian/vpp-nsh-plugin-dev.install; \ + echo ../../$${DOTPREFIX}/$(prefix)/include/vpp-api/nsh_msg_enum.h /usr/include/vpp-api >> $(srcdir)/packaging/deb/debian/vpp-ns\ +h-plugin-dev.install; \ + echo ../../$${DOTPREFIX}/$(prefix)/include/vpp-api/nsh.api.h /usr/include/vpp-api >> $(srcdir)/packaging/deb/debian/vpp-nsh-plugin-dev.install + $(srcdir)/packaging/scripts/generate-deb-changelog; \ + ( \ + cd $(srcdir)/packaging/deb && \ + dpkg-buildpackage -us -uc -b \ + ) + |