#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_SETUP_GHC_CONFIGURE_ARGS := --datasubdir=/usr/share/shake -ffile-embed

export DEB_ENABLE_TESTS := no

# unicode problems in the testsuite

export DEB_GHC_EXTRA_PACKAGES := libghc-shake-data (>= $(CABAL_VERSION))

html/viz.js:
	touch $@

# Create versions of the files we stripped from the upstream tarball that
# are good enough to pass tests.
build-ghc-stamp: html/viz.js

install/libghc-shake-data:: debian/tmp-inst-ghc
	dh_haskell_depends -plibghc-shake-data # for haskell:Extra-Depends substvar

%:
	dh $@
