#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

ifneq ($(wildcard /usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial/libhdf5.so),)
  export CPPFLAGS=-I/usr/include/hdf5/serial
  export LDFLAGS=-Wl,-L/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
endif

binary-install/python-h5py::
	dh_python2
	dh_python3
	dh_numpy
	dh_numpy3

clean::
	$(RM) setuptools-0.6c9-py2.5.egg
	$(RM) h5py_config.pickle
	$(RM) h5py/config.pxi

get-orig-source:
	-uscan --upstream-version 0 --rename
