#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

# Tests only pass on amd64 and armhf see
# https://bugs.launchpad.net/ubuntu/+source/ghc/+bug/1885824
ifeq (,$(filter-out amd64 armhf,$(DEB_HOST_ARCH)))
DEB_ENABLE_TESTS = yes
endif
DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = rank2classes
DEB_DEFAULT_COMPILER = ghc

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
