#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

override_dh_auto_configure:
	dh_auto_configure -- -DLIB=lib/$(DEB_HOST_MULTIARCH)
	@echo 'blhc: ignore-line-regexp: \s+C\+\+ vector data structures'
	@echo 'blhc: ignore-line-regexp: .*Looking for c\+\+ gmx.*libgromacs.*'

override_dh_python3:
	dh_python3 /usr/share/votca/scripts/inverse/ -X.sh -X.pl

override_dh_auto_install:
	dh_auto_install
	cp -r tutorials debian/tmp/usr/share/votca/
	-chmod 755 debian/tmp/usr/share/votca/tutorials/urea-water/kb-ibi/run.sh

# workaround for #960640
override_dh_missing:
	dh_missing --list-missing

%:
	dh $@ --with bash-completion,python3
