#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure \
		-- \
		--disable-asciidoctor \
		--disable-docs \
		--disable-silent-rules \
		--disable-static \
		--disable-test \
		--without-systemd

override_dh_auto_test:

override_dh_auto_clean:

override_dh_installinit:
	dh_installinit -p ndctl --init-script=ndctl-monitor

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_missing:
	dh_missing --fail-missing
