#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh ${@}

execute_after_dh_auto_clean:
	rm -f src/dnstap.pb/dnstap.proto

execute_after_dh_auto_configure:
	mkdir -p src/dnstap.pb
	ln -s ../../debian/local/dnstap.proto src/dnstap.pb/dnstap.proto

execute_after_dh_auto_install:
	# removing unused files
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp/usr/share/doc/*/README.md
