File: rules

package info (click to toggle)
claws-mail 3.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 44,732 kB
  • sloc: ansic: 273,079; xml: 13,055; sh: 5,372; perl: 3,533; makefile: 3,528; yacc: 2,654; lex: 455; python: 334
file content (43 lines) | stat: -rwxr-xr-x 1,116 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
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
FULL_VERSION := $(shell dpkg-parsechangelog -SVersion)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie

%:
	dh $@ --with autotools_dev --parallel 

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--enable-gpgme \
		--enable-ipv6 \
		--enable-aspell \
		--enable-jpilot \
		--enable-ldap \
		--with-config-dir=.claws-mail

override_dh_clean:
	$(MAKE) -C debian/manpages clean
	rm -f src/plugins/perl/tools/matcherrc2perlfilter
	dh_clean

override_dh_auto_build:
	$(MAKE) -C debian/manpages
	pod2man --center="claws-mail-perl-filter" \
		--release="$(FULL_VERSION)" src/plugins/perl/cm_perl.pod \
		> debian/manpages/claws-mail-perl-filter.1
	cp -p src/plugins/perl/tools/matcherrc2perlfilter.pl \
		src/plugins/perl/tools/matcherrc2perlfilter
	dh_auto_build

override_dh_strip:
	dh_strip --dbgsym-migration='claws-mail-dbg (<< 3.14.1-2~)'

override_dh_compress:
	dh_compress -Xclaws-mail/tools