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