File: rules

package info (click to toggle)
haskell-hashable 1.4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: haskell: 1,199; ansic: 77; makefile: 7
file content (19 lines) | stat: -rwxr-xr-x 775 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

LFS_CFLAGS := $(shell getconf LFS_CFLAGS)
GHC_LFSFLAGS := $(LFS_CFLAGS) $(patsubst %,-optc %,$(LFS_CFLAGS))

DEB_SETUP_GHC_CONFIGURE_ARGS = --hsc2hs-options="$(LFS_CFLAGS)" --gcc-options="$(LFS_CFLAGS)" --ghc-options="$(GHC_LFSFLAGS)"

# tests create a dependency loop with splitmix
DEB_ENABLE_TESTS := no

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

# Avoid haddock bug with ppHsc2hs by first running cabal build, which does the
# preprocessing of the .hsc files correctly. Then haddock doesn't choke on the
# preprocessing, and builds the docs for the library component.
# For more information, see:
# https://github.com/haskell/cabal/issues/4215#issuecomment-273486201
build-haddock-stamp: build-ghc-stamp