#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

%:
	dh $@

override_dh_strip:
	dh_strip -p@PACKAGE@@LIBYANG_MAJOR_SOVERSION@  --dbg-package=@PACKAGE@-dbg
	dh_strip -p@CPP_PACKAGE@@LIBYANG_MAJOR_SOVERSION@ --dbg-package=@CPP_PACKAGE@-dbg
#	dh_strip -p@PYTHON_PACKAGE@@LIBYANG_MAJOR_SOVERSION@ --dbg-package=@PYTHON_PACKAGE@-dbg

override_dh_auto_configure:
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_INSRC_BUILD=ON -DCMAKE_BUILD_TYPE="Package" -DENABLE_LYD_PRIV=ON \
	-DGEN_LANGUAGE_BINDINGS=ON -DGEN_PYTHON_BINDINGS=OFF .

override_dh_auto_test:
	ctest --output-on-failure
