File: rules

package info (click to toggle)
metamail 2.7-47sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,360 kB
  • ctags: 1,331
  • sloc: ansic: 16,102; sh: 10,934; csh: 229; makefile: 174
file content (113 lines) | stat: -rwxr-xr-x 2,517 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.

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

# the debhelper compatiblity version
export DH_COMPAT=3

export INTERNAL_DESTDIR=debian/tmp

MAJOR=0
MINOR=0.0

source-updates:
	dh_testdir
	sh bootstrap

build: build-stamp
build-stamp:
	dh_testdir
	chmod +x ./configure
	./configure --prefix=/usr
	$(MAKE)
	touch $@

clean:
	dh_testdir
	dh_testroot
	-if test -e Makefile; then \
	  if test -e Makefile.in; then \
		$(MAKE) distclean; \
	  else \
		$(MAKE) clean; \
	  fi \
	 fi
	dh_clean build-stamp install-stamp mimencode.1

install: install-stamp
install-stamp: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	-$(MAKE) install DESTDIR=`pwd`/$(INTERNAL_DESTDIR)

	cd $(INTERNAL_DESTDIR)/usr/bin && rm sun-message.csh mailserver \
	  rcvAppleSingle richtoatk sndAppleSingle sun-audio-file \
          sun-message sun-to-mime sun2mime mailto-hebrew

	touch $@

binary-indep:
# No arch-indep packages to be built here.

binary-arch: build install metamail


metamail: build install
	dh_testdir -pmetamail
	dh_testroot -pmetamail

	dh_installdirs -pmetamail
	dh_movefiles -pmetamail
	cp man/mmencode.1 debian/mimencode.1

	dh_link -pmetamail usr/lib/libmetamail.so.$(MAJOR).$(MINOR) \
	  usr/lib/libmetamail.so.$(MAJOR)

	dh_installdocs -pmetamail CREDITS README mailers.txt \
	  debian/mime.noinstall
	dh_installchangelogs -pmetamail
	dh_installmime -pmetamail
	dh_installmanpages -pmetamail mmencode.1 mailto-hebrew.1 mailcap.4 \
	    mailcap.5
	dh_strip -pmetamail
	dh_compress -pmetamail
	dh_fixperms -pmetamail
	dh_makeshlibs -pmetamail
	dh_installdeb -pmetamail
	dh_shlibdeps -pmetamail -l$(shell pwd)/debian/metamail/usr/lib
	dh_gencontrol -pmetamail -- -isp
	dh_md5sums -pmetamail
	dh_builddeb -pmetamail

#libmetamail0: build install
#	dh_testdir -plibmetamail0
#	dh_testroot -plibmetamail0

#	dh_installdirs -plibmetamail0
#	dh_movefiles -plibmetamail0

#	dh_link -plibmetamail0 usr/lib/libmetamail.so.$(MAJOR).$(MINOR) \
#	  usr/lib/libmetamail.so.$(MAJOR)

#	dh_installdocs -plibmetamail0
#	dh_installchangelogs -plibmetamail0
#	dh_strip -plibmetamail0
#	dh_compress -plibmetamail0
#	dh_fixperms -plibmetamail0
#	dh_installdeb -plibmetamail0
#	dh_shlibdeps -plibmetamail0
#	dh_gencontrol -plibmetamail0
#	dh_makeshlibs -plibmetamail0 -V
#	dh_md5sums -plibmetamail0
#	dh_builddeb -plibmetamail0


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