#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -a -- --with-pkgconfigdir=/usr/lib/$(DEB_TARGET_MULTIARCH)/pkgconfig --with-systemdunitdir=/usr/lib/systemd/system

override_dh_clean:
	dh_clean -d -X build-aux/tap-driver.sh.bak

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	make check root=/tmp/munge-test-$$$$ verbose=t VERBOSE=t
endif
