#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --with systemd,autoreconf

override_dh_auto_configure:
ifeq (linux,$(DEB_HOST_ARCH_OS))
	dh_auto_configure -- --with-systemd
else
	dh_auto_configure
endif

override_dh_clean:
	# uses dh-exec so needs to be executable
	chmod +x debian/irqbalance.install
	dh_clean

override_dh_systemd_enable:
# The postinst script takes care of enabling the service depending on the
# debconf answer
	dh_systemd_enable --no-enable
