#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --libexec=/usr/lib

override_dh_auto_test:

override_dh_install:
	dh_install
ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
ifneq (,$(findstring i386,$(DEB_HOST_ARCH)))
	dh_install -pimvirt-helper "debian/tmp/usr/lib/imvirt/" "usr/lib/"
endif
ifneq (,$(findstring amd64,$(DEB_HOST_ARCH)))
	dh_install -pimvirt-helper "debian/tmp/usr/lib/imvirt/" "usr/lib/"
endif
endif
