#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

# Use symbols helper for substituting arch-dependent size_t
%:
	dh $@ --with pkgkde_symbolshelper

# Strip bad pkg-config directives
override_dh_auto_configure:
	dh_auto_configure
	perl -i -pe 's/\s+-[fW]\S+//g' *.pc

override_dh_auto_build-indep:
	$(MAKE) doxy

override_dh_installdocs:
	dh_installdocs --exclude=.map --exclude=.md5

override_dh_strip:
	dh_strip --dbgsym-migration='libucommon8-dbg (<< 7.0.0-7~)'
