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

%:
	dh $@ --with=yang --with python3 --with systemd --with vci

override_dh_auto_configure:
	debian/autogen.sh
	./configure --prefix=/opt/vyatta

override_dh_systemd_enable:
	dh_systemd_enable td-agent-bit-reload.path

override_dh_systemd_start:
	dh_systemd_start td-agent-bit-reload.path

# unit-test the python scripts. Honour DEB_BUILD_OPTIONS=nocheck like every
# other build step does -- without this, an unrelated pytest incompatibility
# (pytest 8 dropped CallSpec2.funcargs) fails the whole package build.
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	pytest-3
endif
