5 DEB_PYTHON_SYSTEM=pysupport
6 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
7 DEB_VENDOR=$(shell dpkg-vendor --query vendor)
9 # Comment this to enable 'make check'
10 DEB_BUILD_OPTIONS=nocheck
12 include /usr/share/cdbs/1/rules/debhelper.mk
13 include /usr/share/cdbs/1/class/autotools.mk
14 include /usr/share/cdbs/1/class/python-distutils.mk
15 include /usr/share/cdbs/1/rules/ocaml.mk
17 DEB_CONFIGURE_EXTRA_FLAGS := \
23 --enable-install-daemon \
24 --with-python-installdir=/usr/share/pyshared
26 DEB_DBG_PACKAGES = libguestfs0-dbg
27 DEB_PYTHON_SETUP_CMD := /dev/null
28 #DEB_DH_MAKESHLIBS_ARGS_python-guestfs = -X usr/lib/pyshared
30 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
32 for TEST in ${DEBIAN_SKIP_TEST}; do \
36 touch debian/check-stamp
38 build/guestfish:: debian/check-stamp
41 #install/python-guestfs::
42 # rm -f debian/tmp/usr/lib/python*/*/libguestfsmod.so
43 # for mod in debian/tmp/usr/lib/python*/*/libguestfsmod.so.0.0.0; do \
44 # mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \
48 rm -rf perl/blib/ perl/*.o
49 rm -f src/.pod2text.data
50 rm -f debian/check-stamp