#!/usr/bin/make -f

DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = futhark
DEB_DEFAULT_COMPILER = ghc

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

build/futhark:: build-ghc-stamp
	cd docs; make man

build/futhark-doc::
	cd docs; make html

binary-fixup/libghc-futhark-doc::
	rm -f debian/libghc-futhark-doc/usr/share/doc/libghc-futhark-doc/html/CHANGELOG.md.gz

cleanbuilddir::
	rm -rf debian/tmp-test docs/_build
