#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3,single-binary

override_dh_auto_build:
	dh_auto_build -- prefix=/usr

override_dh_auto_install:
	dh_auto_install -- prefix=/usr

override_dh_python3:
	dh_python3 /usr/libexec/djstub2

execute_after_dh_fixperms:
	chmod 644 debian/djstub/usr/libexec/djstub2/elf.py
