1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
DEB_ENABLE_TESTS = yes
ifneq (,$(filter $(DEB_BUILD_ARCH),loong64))
DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
endif
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
build/haskell-pandoc-data:: build-ghc-stamp
# Override the 'build-ghc-stamp' rule and run 'build_recipe' twice.
# This is an ugly work-around for https://bugs.debian.org/1070015.
# This appears to be a GHC bug, and even though build fails the first
# time on armel, it succeeds with the next try.
# We should remove this as soon as GHC works correctly.
build-ghc-stamp: configure-ghc-stamp
perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
-E 'build_recipe' || \
perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
-E 'build_recipe'
touch $@
|