#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -fcommon


# DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
# # work around the #861281 gcc >= 6 compile time regression on 32bit arm
# ifneq (,$(findstring $(DEB_HOST_ARCH), armel))
#     export DEB_CFLAGS_MAINT_APPEND = -O1
# endif

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	src/RNAhybrid -s 3utr_worm -t examples/cel-hbl-1.fasta -q examples/cel-let-7.fasta
	src/RNAcalibrate -d examples/3UTR_worm.freq -k 50 -l 50,30 -q examples/cel-let-7.fasta
	src/RNAhybrid -d 1.9,0.28 -t examples/cel-hbl-1.fasta -q examples/cel-let-7.fasta
	src/RNAhybrid -f 2,7 -d 1.9,0.28 -t examples/cel-hbl-1.fasta -q examples/cel-let-7.fasta
	src/RNAcalibrate -f 2,7 -d examples/3UTR_worm.freq -k 50 -l 50,30 -q examples/cel-let-7.fasta
	src/RNAhybrid -s 3utr_worm -t examples/cbr-hbl-1.fasta -q examples/cel-let-7.fasta
	-src/RNAeffective -k 30 -s -t examples/hbl-1.fasta -q examples/cel-let-7.fasta
endif
