#!/usr/bin/make -f

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

override_dh_auto_configure:
	dh_auto_configure --verbose -- \
		--disable-silent-rules \
		--with-trust-paths=/etc/ssl/certs/ca-certificates.crt

override_dh_auto_install:
	dh_auto_install
	cd `dirname debian/tmp/usr/lib/*/p11-kit-proxy.so` && \
		rm -f p11-kit-proxy.so && \
		cd .. && \
		ln -vs */libp11-kit.so.*.*.* p11-kit-proxy.so

override_dh_makeshlibs:
	# Force keeping symbol file up to date.
	dh_makeshlibs \
		-Xusr/lib/$(DEB_HOST_MULTIARCH)/pkcs11/p11-kit-trust.so -- -c2

override_dh_strip:
	dh_strip --dbg-package=libp11-kit0-dbg

override_dh_link:
	rm -rf debian/libp11-kit0-dbg/usr/share/doc/libp11-kit0-dbg
	dh_link

%:
	dh $@  --with autoreconf
