#! /usr/bin/make -f

export DEB_CFLAGS_MAINT_STRIP := -fstack-protector
export DEB_BUILD_MAINT_OPTIONS := hardening=-all

%:
	dh $@ --with=autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --enable-example-kernel

override_dh_auto_build:
	dh_auto_build
	cd doc && makeinfo --html --split=chapter --output=html multiboot.texi

override_dh_auto_install:
	dh_auto_install
	rm -f debian/multiboot/usr/share/info/dir
