File: rules

package info (click to toggle)
msmtp 1.8.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,812 kB
  • sloc: ansic: 14,526; sh: 6,540; makefile: 154; lisp: 53; sed: 39
file content (83 lines) | stat: -rwxr-xr-x 1,844 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

FILES_MODIFIED_BY_BUILD = \
	INSTALL \
	Makefile.in \
	aclocal.m4 \
	build-aux/compile \
	build-aux/config.rpath \
	build-aux/depcomp \
	build-aux/install-sh \
	build-aux/mdate-sh \
	build-aux/missing \
	build-aux/test-driver \
	configure \
	doc/Makefile.in \
	doc/msmtp.info \
	doc/stamp-vti \
	doc/version.texi \
	po/Makefile.in.in \
	po/Rules-quot \
	po/boldquot.sed \
	po/en@boldquot.header \
	po/en@quot.header \
	po/quot.sed \
	scripts/Makefile.in \
	src/Makefile.in \
	tests/Makefile.in \
	m4/build-to-host.m4 \
	m4/gettext.m4 \
	m4/host-cpu-c-abi.m4 \
	m4/iconv.m4 \
	m4/intlmacosx.m4 \
	m4/lib-ld.m4 \
	m4/lib-link.m4 \
	m4/lib-prefix.m4 \
	m4/nls.m4 \
	m4/po.m4 \
	m4/progtest.m4

override_dh_autoreconf:
	# Backup files modified by autoreconf
	for file in $(FILES_MODIFIED_BY_BUILD); do \
		if [ -e $$file ] && [ ! -e $$file.keep ] ; then \
			cp $$file $$file.keep ; \
		fi \
	done
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-libsecret --with-libgsasl --with-libidn --with-ssl=gnutls

override_dh_auto_build:
	pod2man --center "" --date "" --release "" --section=1 \
		debian/newaliases.pod > debian/newaliases.1
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	dh_apparmor --profile-name=usr.bin.msmtp -p msmtp

override_dh_installinit:
	dh_installinit --update-rcd-params=defaults-disabled --name msmtpd

override_dh_installsystemd:
	dh_installsystemd --no-enable --name msmtpd

override_dh_clean:
	rm -f debian/newaliases.1
	dh_clean
	# Restore files modified by build
	for file in $(FILES_MODIFIED_BY_BUILD); do \
			if [ -e $$file.keep ] ; then \
					rm -f $$file; \
					mv $$file.keep $$file; \
			fi \
	done
#	find -iname '*.gmo' -delete
#	rm -f doc/msmtp.info doc/stamp-vti doc/version.texi po/msmtp.pot

%:
	dh $@