#!/usr/bin/make -f

# DH_VERBOSE := 1
DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

include /usr/share/dpkg/architecture.mk
export CPATH := /usr/include/hdf5/serial
export LIBRARY_PATH := /usr/lib/$(DEB_TARGET_MULTIARCH)/hdf5/serial

##export LDFLAGS := -pthread $(LDFLAGS)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_install:
	dh_auto_install -- PREFIX=$(CURDIR)/debian/$(DEBPKGNAME)/usr
	cp -a scripts/blast_top_hits.pl $(CURDIR)/debian/$(DEBPKGNAME)/usr/bin/blast_top_hits

%:
	dh $@
