#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

ifeq ($(origin F77),default)
F77 := $(DEB_HOST_GNU_TYPE)-gfortran
endif

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	F77='$(F77)' \
	./configure --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
		--enable-static --enable-dot --enable-dependency-linking

override_dh_auto_build-indep:
	dh_auto_build -- doxydoc
	$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map

# No tests needed for documentation
override_dh_auto_test-indep:

# Nothing to install for documentation
override_dh_auto_install-indep:
