5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8 dh $@ --parallel --with autotools_dev
10 override_dh_auto_configure:
11 SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" \
14 override_dh_auto_clean:
16 rm -f config.log config.status config.h Makefile stamp-h1 spamass-milter.1
18 # PREFIX=$(shell pwd)/debian/spamass-milter/usr
24 # if [ -e debian/patches ]; then \
25 # for a in `ls debian/patches/*.diff`; do \
26 # patch -f -p0 < $$a; \
30 # rm -f unpatch-stamp;
33 # unpatch: unpatch-stamp
37 # if [ -e debian/patches ]; then \
38 # for a in `ls debian/patches/*.diff`; do \
39 # patch -f -p0 -R < $$a; \
47 # configure: configure-stamp
50 # # SPAMC and SENDMAIL are the location of the spamc and sendmail binary, respectively. PREFIX is the location to install to.
51 # # We must specify --mandir because for some ungodly reason, it's being installed into /usr/man by default
52 # LDFLAGS="-L/usr/lib/libmilter" SPAMC="/usr/bin/spamc" SENDMAIL="/usr/sbin/sendmail" \
53 # ./configure --prefix=$(PREFIX) --mandir=$(PREFIX)/share/man
56 # build: configure build-stamp
71 # rm -f configure-stamp
73 # if [ -e Makefile -a -e config.status ]; then \
76 # # the clean target doesn't nuke these, so we kill them here.
77 # rm -f config.log config.h config.status
90 # binary-arch: build install
93 # dh_installchangelogs ChangeLog
94 # dh_installdocs NEWS README
107 # binary: binary-arch
108 # .PHONY: build clean binary-arch binary-indep binary install