#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -lm
PREFIX=/usr

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	# There is no --runstatedir=/run in configure, so we do it manually here.
	./configure --prefix=${PREFIX} --includedir=${PREFIX}/include --mandir=${PREFIX}/share/man --libdir=${PREFIX}/lib/${DEB_HOST_MULTIARCH} --enable-static --with-dot COIN_SKIP_PROJECTS="Osi CoinUtils OsiVol Sample"

override_dh_auto_build:
	dh_auto_build
	doxygen doxydoc/doxygen.conf
	$(RM) doxydoc/html/*.md5 doxydoc/html/*.dot doxydoc/html/*.map

override_dh_installexamples:
	dh_installexamples -X.in
