#! /usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

%:
	dh $@ --without single-binary

override_dh_auto_configure:
	dh_auto_configure -- -Ddocs=enabled

# https://bugs.debian.org/960670
execute_after_dh_install:
	rm -rf debian/python3-nautilus/usr/share/doc/nautilus-python

override_dh_installexamples:
	dh_installexamples -A examples/*.py examples/README

override_dh_makeshlibs:
	dh_makeshlibs -ppython3-nautilus --no-act
