File: rules

package info (click to toggle)
libgadu 1%3A1.12.1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,820 kB
  • ctags: 1,649
  • sloc: ansic: 21,459; perl: 370; makefile: 209; sh: 124
file content (60 lines) | stat: -rwxr-xr-x 1,994 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
# libgadu package rules file
# Copyright 2002-2015 Marcin Owsiany <porridge@debian.org>

# 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 $@ --with autoreconf --parallel

# 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
ifneq (,$(findstring libgadu-doc, $(shell dh_listpackages)))
	# nicer name for api docs directory
	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_strip:
	dh_strip --dbg-package=libgadu3-dbg

override_dh_makeshlibs:
	dh_makeshlibs -V