6 PREFIX=$(shell pwd)/debian/spamass-milter/usr
12 if [ -e debian/patches ]; then \
13 for a in `ls debian/patches/*.diff`; do \
21 unpatch: unpatch-stamp
25 if [ -e debian/patches ]; then \
26 for a in `ls debian/patches/*.diff`; do \
27 patch -f -p0 -R < $$a; \
35 configure: configure-stamp
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
44 build: configure build-stamp
61 if [ -e Makefile -a -e config.status ]; then \
64 # the clean target doesn't nuke these, so we kill them here.
65 rm -f config.log config.h config.status
78 binary-arch: build install
81 dh_installchangelogs ChangeLog
82 dh_installdocs NEWS README
96 .PHONY: build clean binary-arch binary-indep binary install