#!/usr/bin/make -f

# DH_VERBOSE := 1

VERSION	       := $(shell dpkg-parsechangelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

mandir=$(CURDIR)/debian/$(DEBPKGNAME)/usr/share/man/man1
bindir=$(CURDIR)/debian/$(DEBPKGNAME)/usr/bin

HELP2MAN = help2man --no-info --version-string="$(VERSION)"

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

#override_dh_auto_configure:
#  htcondor is a bit complex to be configured and thus we delay this one
#	dh_auto_configure -- --enable-condor-compile
	    # found automatically: --with-mummer=/usr/bin/mummer --with-exonerate=/usr/bin/exonerate

override_dh_auto_test:
	echo "Tests seem to miss some files:"
	echo "make[4]: *** No rule to make target 'apps/isect_d.unmappable.bash', needed by 'apps/isect_d.unmappable.bash.log'.  Stop."

override_dh_install:
	dh_install
	mv $(bindir)/translate $(bindir)/fsa-translate

get-orig-source:
	uscan --verbose --force-download --repack --compression xz
