]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - debian/rules
Document how to make inet:9999@127.0.0.1 work (closes: #519425)
[deb_pkgs/spamass-milter.git] / debian / rules
1 #!/usr/bin/make -f
2
3 #DH_VERBOSE = 1
4
5
6 PREFIX=$(shell pwd)/debian/spamass-milter/usr
7
8 patch: patch-stamp
9 patch-stamp:
10         dh_testdir
11
12         if [ -e debian/patches ]; then \
13                 for a in `ls debian/patches/*.diff`; do \
14                         patch -f -p0 < $$a; \
15                 done; \
16         fi;
17
18         rm -f unpatch-stamp;
19         touch $@
20
21 unpatch: unpatch-stamp
22 unpatch-stamp:
23         dh_testdir
24
25         if [ -e debian/patches ]; then \
26                 for a in `ls debian/patches/*.diff`; do \
27                         patch -f -p0 -R < $$a; \
28                 done; \
29         fi;
30
31         rm -f patch-stamp
32         touch $@
33
34
35 configure: configure-stamp
36 configure-stamp:
37
38 # SPAMC and SENDMAIL are the location of the spamc and sendmail binary, respectively. PREFIX is the location to install to.
39 # We must specify --mandir because for some ungodly reason, it's being installed into /usr/man by default
40         LDFLAGS="-L/usr/lib/libmilter" SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" \
41                 ./configure --prefix=$(PREFIX) --mandir=$(PREFIX)/share/man
42         touch $@
43
44 build: configure build-stamp
45 build-stamp:
46         dh_testdir
47
48         $(MAKE)
49
50         touch $@
51
52 clean:
53         dh_testdir
54         dh_testroot
55
56         rm -f build-stamp
57         rm -f patch-stamp
58         rm -f unpatch-stamp
59         rm -f configure-stamp
60
61         if [ -e Makefile -a -e config.status ]; then \
62                 $(MAKE) clean; \
63         fi
64 # the clean target doesn't nuke these, so we kill them here.
65         rm -f config.log config.h config.status
66         dh_clean
67
68 install: build
69         dh_testdir
70         dh_testroot
71         dh_clean -k
72         dh_installdirs
73
74         $(MAKE) install
75
76 binary-indep:
77
78 binary-arch: build install
79         dh_testdir
80         dh_testroot
81         dh_installchangelogs ChangeLog
82         dh_installdocs NEWS README
83         dh_installman
84         dh_installinit
85         dh_link
86         dh_strip
87         dh_compress
88         dh_fixperms
89         dh_installdeb
90         dh_shlibdeps
91         dh_gencontrol
92         dh_md5sums
93         dh_builddeb
94
95 binary: binary-arch
96 .PHONY: build clean binary-arch binary-indep binary install