summaryrefslogtreecommitdiff
path: root/p/haskell-yaml/debian/rules
blob: 68de85e3edcc39737358caf17f5b823f2accb5a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

DEB_SETUP_GHC_CONFIGURE_ARGS := --flags=system-libyaml

# The test suite requires template haskell
ifeq (0,$(shell ghc --info | grep 'Have interpreter.*YES' >/dev/null 2>&1; echo $$?))
ifeq (,$(filter $(DEB_BUILD_ARCH),mips mipsel mips64el))
DEB_ENABLE_TESTS = yes
export LC_ALL=C.UTF-8
else
DEB_ENABLE_TESTS = no
endif
else
DEB_ENABLE_TESTS = no
endif

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

cleanbuilddir/libghc-yaml-dev::
	rm -f tmp.yaml tmp2.yaml