mingw: tests compilation and run
[siplcs.git] / contrib / opensuse-build-service / debian.rules
blob2ecaf7068810382eabd13e7aa961d5473ad3adb1
1 #!/usr/bin/make -f
3 include /usr/share/cdbs/1/class/autotools.mk
4 include /usr/share/cdbs/1/rules/debhelper.mk
6 DEB_CONFIGURE_EXTRA_FLAGS := --with-purple --without-telepathy
8 # autodetect Kerberos support
9 ifneq ($(shell krb5-config --version 2>/dev/null),)
10 DEB_CONFIGURE_EXTRA_FLAGS += --with-krb5=yes
11 endif
13 # run tests
14 DEB_MAKE_CHECK_TARGET := check
16 # don't run unnecessary ldconfig on postinst and postrm.
17 DEB_DH_MAKESHLIBS_ARGS_pidgin-sipe=-n
19 clean::
20 dh_testdir
22 # git snapshot does not contain a configure script
23 $(DEB_BUILDDIR)/config.status: $(DEB_CONFIGURE_SCRIPT)
25 $(DEB_CONFIGURE_SCRIPT):
26 ./autogen.sh
28 binary-post-install/pidgin-sipe::
29 rm debian/pidgin-sipe/usr/share/doc/pidgin-sipe/README
30 rm debian/pidgin-sipe/usr/lib/purple-2/libsipe.la
32 .PHONY: update-debian-control