blob: bfcc1b4e493c10f9bbbf76c09c65386834692b99 [file] [log] [blame]
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@
override_dh_strip:
dh_strip -plibyang@PACKAGE_PART_NAME@ --dbg-package=libyang@PACKAGE_PART_NAME@-dbg
dh_strip -plibyang-cpp@PACKAGE_PART_NAME@ --dbg-package=libyang-cpp@PACKAGE_PART_NAME@-dbg
dh_strip -ppython3-yang@PACKAGE_PART_NAME@ --dbg-package=python3-yang@PACKAGE_PART_NAME@-dbg
override_dh_auto_configure:
mkdir my_build
cd my_build && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE:String="@BUILD_TYPE@" -DGEN_LANGUAGE_BINDINGS=ON ..
override_dh_auto_install:
install -d debian/libyang@PACKAGE_PART_NAME@
install -d debian/libyang@PACKAGE_PART_NAME@-dbg
install -d debian/libyang-cpp@PACKAGE_PART_NAME@
install -d debian/libyang-cpp@PACKAGE_PART_NAME@-dbg
install -d debian/python3-yang@PACKAGE_PART_NAME@
install -d debian/python3-yang@PACKAGE_PART_NAME@-dbg
cd my_build && make -j1 install DESTDIR=/usr/src/packages/BUILD/debian/tmp AM_UPDATE_INFO_DIR=no
override_dh_auto_build:
cd my_build && make
override_dh_auto_test:
cd my_build && ctest --output-on-failure