#!/usr/bin/make -f

# DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	dh_auto_build  --sourcedirectory=paf2gfa

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mkdir tmp
	./gfatools view -l MTh4502 -r 1 test/MT.gfa > tmp/sub.gfa
	./gfatools gfa2fa test/MT.gfa > tmp/MT-seg.fa
	./gfatools gfa2fa -s test/MT.gfa > tmp/MT.fa
	./gfatools gfa2bed -m test/MT.gfa > tmp/MT.bed
	rm -rf tmp
	
endif
