File: rules

package info (click to toggle)
haskell-yaml 0.11.11.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 272 kB
  • sloc: haskell: 2,371; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

# See https://bugs.debian.org/951490
DEB_SETUP_GHC_CONFIGURE_ARGS := --flags="no-exe"

# 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