]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - debian/rules
update changelog for new version
[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         SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" ./configure --prefix=$(PREFIX) --mandir=$(PREFIX)/share/man
41         touch $@
42
43 build: configure build-stamp
44 build-stamp:
45         dh_testdir
46
47         $(MAKE)
48
49         touch $@
50
51 clean:
52         dh_testdir
53         dh_testroot
54
55         rm -f build-stamp
56         rm -f patch-stamp
57         rm -f unpatch-stamp
58         rm -f configure-stamp
59
60         if [ -e Makefile -a -e config.status ]; then \
61                 $(MAKE) clean; \
62         fi
63 # the clean target doesn't nuke these, so we kill them here.
64         rm -f config.log config.h config.status
65         dh_clean
66
67 install: build
68         dh_testdir
69         dh_testroot
70         dh_clean -k
71         dh_installdirs
72
73         $(MAKE) install
74
75 binary-indep:
76
77 binary-arch: build install
78         dh_testdir
79         dh_testroot
80         dh_installchangelogs ChangeLog
81         dh_installdocs NEWS README
82         dh_installman
83         dh_installinit
84         dh_link
85         dh_strip
86         dh_compress
87         dh_fixperms
88         dh_installdeb
89         dh_shlibdeps
90         dh_gencontrol
91         dh_md5sums
92         dh_builddeb
93
94 binary: binary-arch
95 .PHONY: build clean binary-arch binary-indep binary install