File: rules

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

DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = http-link-header
DEB_DEFAULT_COMPILER = ghc

DEB_ENABLE_TESTS = yes

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

# workaround to prevent some random failures on power while waiting for :
# https://ghc.haskell.org/trac/ghc/ticket/12537
ifneq (,$(findstring $(DEB_HOST_ARCH), powerpc ppc64 ppc64el))
DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-j1"
endif

check-ghc-stamp: export LC_ALL := C.UTF-8