#!/usr/bin/make -f

#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

execute_after_dh_auto_clean:
	rm -f Makefile config.log config.status sntop sntop.o getopt_long.o

# Package does not support DESTDIR.
override_dh_auto_install:
	dh_auto_install -- \
	ETCDIR=`pwd`/debian/sntop/etc \
	prefix=`pwd`/debian/sntop/usr

# Package does not have tests.
override_dh_auto_test:

override_dh_installexamples:
	dh_installexamples sntoprc.EXAMPLE alarm.sh

override_dh_installman:
	dh_installman sntop.1
