extra-tests: Add an extra suppression for OCaml 3.11.2 in RHEL 6.
[libguestfs.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4
5 DEB_PYTHON_SYSTEM=pysupport
6 DEB_DH_INSTALL_SOURCEDIR = debian/tmp
7 DEB_VENDOR=$(shell dpkg-vendor --query vendor)
8
9 # Comment this to enable 'make check'
10 DEB_BUILD_OPTIONS=nocheck
11
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
16
17 DEB_CONFIGURE_EXTRA_FLAGS := \
18         --with-java-home=no \
19         --disable-ruby \
20         --disable-haskell \
21         --disable-php \
22         --with-readline \
23         --enable-install-daemon \
24         --with-python-installdir=/usr/share/pyshared
25
26 DEB_DBG_PACKAGES = libguestfs0-dbg
27 DEB_PYTHON_SETUP_CMD := /dev/null
28 #DEB_DH_MAKESHLIBS_ARGS_python-guestfs = -X usr/lib/pyshared
29
30 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
31 debian/check-stamp:
32         for TEST in ${DEBIAN_SKIP_TEST}; do \
33             export $$TEST=1; \
34         done; \
35         make check
36         touch debian/check-stamp
37
38 build/guestfish:: debian/check-stamp
39 endif
40
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; \
45 #       done
46
47 clean::
48         rm -rf perl/blib/ perl/*.o
49         rm -f src/.pod2text.data
50         rm -f debian/check-stamp