#!/usr/bin/make -f

export HOME=$(CURDIR)/debian/cabalconfig
export DISPLAY=:0

%:
	dh $@ --buildsystem pybuild

execute_before_dh_auto_configure:
	$(MAKE) xcffib

# we can't use setup.py clean here, since it checks for the existence of xcffib/
override_dh_auto_clean:
	$(MAKE) clean
	rm -rf debian/cabalconfig
	rm -rf .ghc.environment.*
