#!/usr/bin/make -f
%:
	dh $@  --parallel --with autotools_dev

export OMPI_MCA_plm_rsh_agent=/bin/false                #workaround to start MPI-applications in chroot

override_dh_auto_install:
	dh_auto_install
	rm -rf $(CURDIR)/debian/tmp/usr/bin/test* \
         $(CURDIR)/debian/tmp/usr/bin/usescases \
         $(CURDIR)/debian/tmp/usr/bin/unittests

ifeq (,$(filter $(DEB_HOST_ARCH), amd64 hurd-i386 i386 kfreebsd-i386 kfreebsd-amd64 mipsel powerpc))
override_dh_auto_test:

endif
