#!/usr/bin/make -f
  
# workaround to avoid calling Scratchbox python2.3
PATH := /usr/bin:$(PATH)
export PATH
SBOX_REDIRECT_IGNORE = /usr/bin/python
export SBOX_REDIRECT_IGNORE

DEB_PYTHON_SYSTEM = pycentral

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

install/python-conic-dbg ::
	for i in $(cdbs_python_build_versions); do \
      python$$i-dbg ./setup.py install $(DEB_PYTHON_INSTALL_ARGS_ALL) \
         --root $(CURDIR)/debian/python-conic-dbg; \
    done
	: # Keep only _d.so files for python-conic-dbg package
	find debian/python-conic-dbg ! -type d ! -name '*_d.so' | xargs rm -f
	: # Prune empty directories
	find debian/python-conic-dbg -depth -empty -exec rmdir \{\} \;

# Add here any variable or target overrides you need.

#with_tests := no

#ifneq ($(with_tests),yes)
#NOPKGS += -Npython-conic-tests
#endif

#export DH_OPTIONS = $(NOPKGS)

#install/python-conic::
#	mkdir -p $(CURDIR)/debian/python-conic/usr/lib/python2.5/site-packages
#	cp $(CURDIR)/debian/tmp/usr/lib/python2.5/site-packages/* $(CURDIR)/debian/python-conic/usr/lib/python2.5/site-packages

#install/python-conic-tests::
#	mkdir -p $(CURDIR)/debian/python-conic-tests/usr/share/python-conic-tests
#	cp -r $(CURDIR)/tests/* $(CURDIR)/debian/python-conic-tests/usr/share/python-conic-tests
#	cp $(CURDIR)/debian/runtests.sh $(CURDIR)/debian/python-conic-tests/usr/share/python-conic-tests
