#!/usr/bin/make -f

DEB_SETUP_BIN_NAME = cabal
DEB_CABAL_PACKAGE = http-link-header
DEB_DEFAULT_COMPILER = ghc

# ghci is broken on armel (#839840)
ifeq (,$(filter $(DEB_BUILD_ARCH),armel))
DEB_ENABLE_TESTS = yes
else
DEB_ENABLE_TESTS = no
endif

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

# cabal requires the global (i.e., before any subcommand) --config-file switch
# to change where it writes its config.  That's not currently supported with
# Dh_Haskell.sh, so just point it to a writable HOME for now.
export HOME=$(CURDIR)/debian/cabalconfig
