]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - debian/rules
fix typo and add some semicolons
[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
76 binary-arch: build install
77         dh_testdir
78         dh_testroot
79         dh_installchangelogs ChangeLog
80         dh_installdocs NEWS README
81         dh_installman
82         dh_installinit
83         dh_link
84         dh_strip
85         dh_compress
86         dh_fixperms
87         dh_installdeb
88         dh_shlibdeps
89         dh_gencontrol
90         dh_md5sums
91         dh_builddeb
92
93 binary: binary-arch
94 .PHONY: build clean binary-arch binary install