#!/usr/bin/make -f

# If no threaded RTS is found, disable it
RTS_WAYS := $(shell ghc --info | grep -e 'RTS ways')

ifeq (,$(filter $(RTS_WAYS),thr_dyn))
export DEB_SETUP_GHC_CONFIGURE_ARGS=--flags=-threaded --datasubdir=/usr/share/hlint
else
export DEB_SETUP_GHC_CONFIGURE_ARGS=--datasubdir=/usr/share/hlint
endif

%:
	dh $@
