#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-mpi

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/ -name "*.la" | xargs rm -f
	sed -i -e "s/mpicc/gcc/g" $(CURDIR)/debian/tmp/usr/share/gerris/build_function
	rm -rf $(CURDIR)/debian/tmp/usr/bin/darcs2dist
	rm -rf $(CURDIR)/debian/tmp/usr/bin/gfs2doc

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

# test suite is written in python2, so don't run
override_dh_auto_test:

