#!/usr/bin/make -f # libgadu package rules file # Copyright 2002-2015 Marcin Owsiany # Force the glibc-generated stack dump to stderr instead of /dev/tty for the # test suite: export LIBC_FATAL_STDERR_=1 # Temporary measure for experimental upload to see what exactly is going on. export DH_VERBOSE = 1 %: dh $@ # Remember to update README.Debian as well... override_dh_auto_configure: dh_auto_configure -- \ --disable-silent-rules \ --with-c99-vsnprintf \ --with-pthread \ --without-bind \ --without-openssl \ --with-gnutls # Reasons for disabling features are in README.Debian # Remember to update README.Debian as well... override_dh_auto_build: # Make sure the code is warning-free. We cannot set this for the whole # file, because many temporary files generated by configure are not # warning-free. dh_auto_build -- CFLAGS="$$(DEB_CFLAGS_MAINT_APPEND=-Werror dpkg-buildflags --get CFLAGS)" # work-around #591387 rm -f docs/html/installdox override_dh_auto_test: # Make sure the code is warning-free. We cannot set this for the whole # file, because many temporary files generated by configure are not # warning-free. # Also, since we still want to be able to test library functions that # are deprecated, make deprecation warnings non-fatal. # Also, set verbose to make automake tests dump errors to output: # https://lists.debian.org/debian-devel/2014/04/msg00324.html VERBOSE=1 dh_auto_test -- CFLAGS="$$(DEB_CFLAGS_MAINT_APPEND='-Werror -Wno-error=deprecated-declarations' dpkg-buildflags --get CFLAGS)" override_dh_installdocs: dh_installdocs -X.md5 ifneq (,$(findstring libgadu-doc, $(shell dh_listpackages))) # nicer name for api docs directory mv debian/libgadu-doc/usr/share/doc/libgadu-dev/* \ debian/libgadu-doc/usr/share/doc/libgadu-doc/. rmdir debian/libgadu-doc/usr/share/doc/libgadu-dev mv debian/libgadu-doc/usr/share/doc/libgadu-doc/html \ debian/libgadu-doc/usr/share/doc/libgadu-doc/api endif override_dh_compress: dh_compress -X.js override_dh_makeshlibs: dh_makeshlibs -V