File: rules

package info (click to toggle)
nmh 1.0.4%2Bdev-20010317-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,508 kB
  • ctags: 4,515
  • sloc: ansic: 50,161; sh: 2,711; makefile: 961; awk: 74
file content (66 lines) | stat: -rwxr-xr-x 1,507 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
#!/usr/bin/make -f
#
# $Debian: nmh/debian/rules,v 1.2 2001/11/10 17:14:59 dsp Exp $

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

build:
	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=smtp                     	 \
	  --with-cyrus-sasl=/usr/include         \
	  --enable-pop                           \
	  --enable-apop                          \
	  --enable-masquerade=
	$(MAKE) CFLAGS="-O2 -g -Wall" LDFLAGS=
	touch build

clean:
	dh_testdir
	dh_testroot
	-rm -f build
	-make distclean
	dh_clean

binary-indep:	build
# nothing to do

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	
	make install prefix=`pwd`/debian/tmp

	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/tmp/etc/nmh/mhn.defaults

	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

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