#!/usr/bin/make -f

# build fails when format hardening is on
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

# libbz2-dev does not provide a pkg-config file (Bug: #853803)
override_dh_auto_configure:
	dh_auto_configure -- \
		bzip2_CFLAGS=' ' \
		bzip2_LIBS=-lbz2 \
		bzip2_VERSION=' ' \
		--libexecdir=/lib/udev \
		--with-udevdir=/lib/udev

override_dh_auto_install:
	dh_auto_install
	rm debian/gfs2-utils/usr/share/doc/gfs2-utils/COPY*
	rm debian/gfs2-utils/usr/share/doc/gfs2-utils/README.licence

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
	if ! dh_auto_test; then cat tests/testsuite.log; exit 1; fi
