#!/usr/bin/make -f

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	dh_autoreconf autoreconf  -- -f -i -I src/missing/m4

override_dh_auto_configure:
	dh_auto_configure -- --enable-demo

execute_after_dh_auto_build:
	$(MAKE) -C doc netperf.pdf netperf.html

execute_after_dh_auto_install:
	$(RM) -rv debian/netperf/usr/share/info

override_dh_installsystemd:
	dh_installsystemd --no-enable

override_dh_installinit:
	dh_installinit --no-enable --no-start
