File: rules

package info (click to toggle)
claws-mail 3.17.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 49,576 kB
  • sloc: ansic: 266,858; cpp: 14,210; xml: 11,054; sh: 5,432; makefile: 3,208; perl: 2,755; yacc: 2,535; python: 334; lex: 293
file content (57 lines) | stat: -rwxr-xr-x 1,424 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
TMP := $(CURDIR)/debian/tmp

MANUAL =
XDOCPKG =
ifneq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
  MANUAL = --disable-manual
  XDOCPKG = -Xclaws-mail-doc
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

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

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

execute_before_dh_auto_build:
	$(MAKE) -C debian/manpages
	pod2man --center="claws-mail-perl-filter" \
		--release="$(DEB_VERSION)" src/plugins/perl/cm_perl.pod \
		--section=7 \
		> debian/manpages/claws-mail-perl-filter.7
	cp -p src/plugins/perl/tools/matcherrc2perlfilter.pl \
		src/plugins/perl/tools/matcherrc2perlfilter

override_dh_compress:
	dh_compress -Xclaws-mail/tools

override_dh_installdocs-arch:
	dh_installdocs --arch -A $(XDOCPKG)

override_dh_installdocs-indep:
	dh_installdocs --indep -A $(XDOCPKG)

execute_before_dh_install:
ifneq (,$(MANUAL))
	mkdir -p $(TMP)/usr/share/doc/claws-mail/manual
	echo "Package built with 'nodoc' option" \
		> $(TMP)/usr/share/doc/claws-mail/manual/INFO
endif