#!/usr/bin/make -f
export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	help2man -v --version -n "Wisconsin's High-Throughput Alignment Method" ./wham | sed -e '4s/ Version / /' > debian/wham.1
	help2man -v --version -n "Wisconsin's High-Throughput Alignment Method" ./wham-build | sed -e '4s/ Version / /' > debian/wham-build.1

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/*.1
