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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Enable the hardening build flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --sysconfdir=/etc/siege --localstatedir=/var/log
override_dh_auto_install:
	dh_auto_install
	# Do not use language-specific extension (policy).
	mv $(CURDIR)/debian/siege/usr/bin/siege2csv.pl $(CURDIR)/debian/siege/usr/bin/siege2csv
override_dh_auto_clean:
	dh_auto_clean
	# remove autogenerated file
	rm -rf PLATFORM
	# remove custom macros
	rm -f acinclude.m4 aclocal.m4 acspecific.m4
