File: rules

package info (click to toggle)
claws-mail 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 51,140 kB
  • sloc: ansic: 267,738; cpp: 19,477; xml: 11,217; sh: 5,720; perl: 2,767; makefile: 2,505; yacc: 2,470; python: 334; lex: 293
file content (59 lines) | stat: -rwxr-xr-x 1,557 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
#!/usr/bin/make -f

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

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
TMP := $(CURDIR)/debian/tmp
ISO_DATE := $(shell date +%Y-%m-%d -u -d @$(SOURCE_DATE_EPOCH))

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 VERSION="$(DEB_VERSION)" DATE="$(ISO_DATE)"
	pod2man --center="claws-mail-perl-filter" \
		--date="$(ISO_DATE)" \
		--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