Version 1.10.6.
[libguestfs.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DEB_PYTHON_SYSTEM=pysupport
4 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
5 DEB_VENDOR=$(shell dpkg-vendor --query vendor)
6
7 # Comment this to enable 'make check'
8 DEB_BUILD_OPTIONS=nocheck
9
10 include /usr/share/cdbs/1/rules/debhelper.mk
11 include /usr/share/cdbs/1/class/autotools.mk
12 include /usr/share/cdbs/1/class/python-distutils.mk
13
14 DEB_CONFIGURE_EXTRA_FLAGS := \
15         --with-java-home=no \
16         --disable-ruby \
17         --disable-haskell \
18         --disable-php \
19         --with-readline \
20         --with-python-installdir=/usr/share/pyshared
21
22 DEB_DBG_PACKAGES = libguestfs0-dbg
23 DEB_PYTHON_SETUP_CMD := /dev/null
24 #DEB_DH_MAKESHLIBS_ARGS_python-guestfs = -X usr/lib/pyshared
25
26 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
27 debian/check-stamp:
28         for TEST in ${DEBIAN_SKIP_TEST}; do \
29             export $$TEST=1; \
30         done; \
31         make check
32         touch debian/check-stamp
33
34 build/guestfish:: debian/check-stamp
35 endif
36
37 #install/python-guestfs::
38 #       rm -f debian/tmp/usr/lib/python*/*/libguestfsmod.so
39 #       for mod in debian/tmp/usr/lib/python*/*/libguestfsmod.so.0.0.0; do \
40 #               mv $${mod} $$(dirname $${mod})/libguestfsmod.so; \
41 #       done
42
43 clean::
44         rm -rf perl/blib/ perl/*.o
45         rm -f src/.pod2text.data
46         rm -f debian/check-stamp