#!/usr/bin/make -f

UBU_SUGGESTS=debian-keyring, equivs, libcrypt-ssleay-perl, libsoap-lite-perl

%:
	dh $@ --with python2,python3

override_dh_gencontrol:
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo ubuntu),ubuntu)
	dh_gencontrol -- -V'vendor:Suggests=$(UBU_SUGGESTS)' -V'vendor:Recommends='
else
	dh_gencontrol -- -V'vendor:Suggests=' -V'vendor:Recommends=$(UBU_SUGGESTS)'
endif

override_dh_install:
	dh_install
	rm -rf debian/devscripts/usr/lib/python2.7/dist-packages/devscripts/__pycache__/
	rm -rf debian/devscripts/usr/lib/python2.7/dist-packages/devscripts/test/__pycache__/
