#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CXXFLAGS_MAINT_APPEND = -fvisibility-inlines-hidden

%:
	dh $@ --parallel --with autoreconf


override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules

override_dh_install:
	dh_install --fail-missing -X.la -X.a

override_dh_auto_build-indep:
	$(MAKE) -C doc docs

override_dh_auto_clean:
	rm -rf doc/html doc/latex doc/man
	dh_auto_clean

override_dh_strip:
	dh_strip --dbgsym-migration='libwfmath-1.0-1v5-dbg (<< 1.0.2+dfsg1-1)'
