rendered paste body#!/usr/bin/make -f
include /usr/share/cdbs/1/class/xfce.mk
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_CONFIGURE_EXTRA_FLAGS := --enable-python --enable-gtk-doc --disable-notifications
DEB_DH_MAKESHLIBS_ARGS_libexo-0.3-0 := -V
DEB_DH_COMPRESS_ARGS := -X.py
DEB_DBG_PACKAGE_python-exo = python-exo-dbg
PY_VERSIONS := $(shell pyversions -vr)
binary-post-install/libexo-0.3-0::
-rm -f debian/libexo-0.3-0/usr/lib/xfce4/*/*a
install-stamp-%:
$(MAKE) -C python clean
$(MAKE) -C python install \
DESTDIR=$(CURDIR)/debian/tmp \
PYTHON=/usr/bin/python$* \
PYTHON_VERSION=$* \
PYTHON_INCLUDES=-I/usr/include/python$* \
pylibdir=/usr/lib/python$*/site-packages \
pyexecdir=/usr/lib/python$*/site-packages
dbg-install-stamp-%:
$(MAKE) -C python clean
$(MAKE) -C python install \
CFLAGS='-g -O0' \
DESTDIR=$(CURDIR)/debian/tmp \
PYTHON=/usr/bin/python$*-dbg \
PYTHON_VERSION=$* \
PYTHON_INCLUDES=-I/usr/include/python$*_d \
pylibdir=/usr/lib/python$*/site-packages \
pyexecdir=/usr/lib/python$*/site-packages
# install the debug version first; other files overwritten by later installs
install/python-exo:: install/python-exo-dbg $(addprefix install-stamp-, $(PY_VERSIONS))
install/python-exo-dbg:: $(addprefix dbg-install-stamp-, $(PY_VERSIONS))
for i in $$(find debian/tmp/usr/lib/py* ! -name '*_d.so' -name '*.so'); do \
b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \
done
binary-install/python-exo::
find debian/python-exo \( -name '*.a' -o -name '*.la' \) | xargs -r rm -f
DH_PYCENTRAL=nomove dh_pycentral -ppython-exo
binary-predeb/python-exo-dbg::
rm -rf debian/python-exo-dbg/usr/share/doc/python-exo-dbg
ln -s python-exo debian/python-exo-dbg/usr/share/doc/python-exo-dbg
clean::
rm -f install-stamp* dbg-install-stamp*
rm -f po/exo.pot