#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

override_dh_auto_test:
	# do nothing

override_dh_install:
	dh_install
	#
	# Using rdfind and symlinks to transform duplicated files in softlinks
	#
	rdfind -makesymlinks true -makeresultsfile false $(CURDIR)/debian/md5deep/usr/share/man/man1/
	symlinks -cr $(CURDIR)/debian/md5deep/usr/share/man/man1/
	rdfind -makesymlinks true -makeresultsfile false $(CURDIR)/debian/md5deep/usr/bin
	symlinks -cr $(CURDIR)/debian/md5deep/usr/bin
