#!/usr/bin/make -f

# Unset the environment variables set by dpkg-buildpackage. (This is
# necessary because distutils is brittle with compiler/linker flags
# set. Specifically, packages using f2py will break without this.)
unexport CPPFLAGS
unexport CFLAGS
unexport CXXFLAGS
unexport FFLAGS
unexport LDFLAGS

#exports specified using stdeb Setup-Env-Vars:
#export DH_OPTIONS=--buildsystem=python_distutils

override_dh_auto_install:
	python setup.py install --root=debian/python-asap --install-layout=deb

override_dh_auto_clean:
	python setup.py clean
	scons -c

override_dh_auto_build:
	python setup.py build_ext --casacoreroot=/usr

%:
	dh $@
