File: rules

package info (click to toggle)
nmh 1.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,056 kB
  • ctags: 4,531
  • sloc: ansic: 50,788; sh: 3,141; makefile: 965; awk: 74
file content (78 lines) | stat: -rwxr-xr-x 1,817 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
#!/usr/bin/make -f
#

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: patch
	dh_testdir
	./configure \
	  --prefix=                              \
	  --bindir='$${prefix}/usr/bin/mh'       \
	  --sysconfdir='$${prefix}/etc/nmh'      \
	  --libdir='$${prefix}/usr/lib/mh'       \
	  --mandir='$${prefix}/usr/share/man'    \
	  --with-editor=/usr/bin/sensible-editor \
	  --with-pager=/usr/bin/sensible-pager	 \
	  --with-mts=sendmail                  	 \
	  --with-cyrus-sasl=/usr/include         \
	  --enable-pop                           \
	  --enable-apop                          \
	  --enable-masquerade=''
	$(MAKE) sendmailpath=/usr/sbin/sendmail CFLAGS="-O2 -Wall -g" LDFLAGS=
	touch build

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	-rm -f build
	-make distclean
	dh_clean
	-rm -f sbr/dtimep.c

binary-indep:	build
# nothing to do

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	make install prefix=`pwd`/debian/nmh

	dh_installdocs
	dh_installexamples
	dh_installchangelogs ChangeLog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms

	# override nmh-provided mhn.defaults
	install -p -m 644 debian/mhn.defaults debian/nmh/etc/nmh/mhn.defaults
	# install bash-completions
	install -D -p -m 644 debian/nmh.bash_completions debian/nmh/etc/bash_completion.d/nmh

	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

patch: patch-stamp
patch-stamp: 
	dpatch apply-all
	# dpatch call-all -a=pkg-info >patch-stamp

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary:	binary-indep binary-arch
.PHONY: clean binary binary-arch binary-indep