File: rules

package info (click to toggle)
msmtp 1.4.28-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,980 kB
  • sloc: ansic: 10,847; sh: 5,168; python: 121; makefile: 84; sed: 16
file content (46 lines) | stat: -rwxr-xr-x 1,208 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
#!/usr/bin/make -f

CONFIGURE_COMMON_OPTS := --with-libgsasl --with-ssl=gnutls

override_dh_auto_configure:
	# prepare first build: msmtp
	mkdir -p build
	ln -s $(CURDIR)/debian build/debian
	ln -s $(CURDIR)/configure build/configure
	cd build && \
		dh_auto_configure -- \
			${CONFIGURE_COMMON_OPTS} --without-gnome-keyring
	# prepare second build: msmtp with GNOME Keyring support
	mkdir -p build-gnome
	ln -s $(CURDIR)/debian build-gnome/debian
	ln -s $(CURDIR)/configure build-gnome/configure
	cd build-gnome && \
		dh_auto_configure -- \
			${CONFIGURE_COMMON_OPTS} --with-gnome-keyring

override_dh_auto_build:
	pod2man --center "" --date "" --release "" --section=1 \
		debian/newaliases.pod > debian/newaliases.1
	$(MAKE) -C build
	$(MAKE) -C build-gnome

override_dh_auto_install:
	$(MAKE) -C build install DESTDIR=$(CURDIR)/debian/tmp

override_dh_compress:
	dh_compress -X msmtp-gnome-tool.py

override_dh_link:
	# hook to create a symlink between /usr/share/doc/msmtp-gnome
	# and /usr/share/doc/msmtp
	rm -rf $(CURDIR)/debian/msmtp-gnome/usr/share/doc/msmtp-gnome
	dh_link

override_dh_auto_clean:
	rm -rf build build-gnome
	rm -f debian/newaliases.1
	dh_clean

%:
	dh $@ --with autotools_dev