1 ## Process this file with automake to produce Makefile.in
2 ## $Id: Makefile.am,v 1.24 2011/02/14 21:56:15 dnelson Exp $
4 AUTOMAKE_OPTIONS = no-dependencies foreign dist-bzip2
6 # The number of files autoconf leaves lying around after a clean is amazing.
7 CLEANFILES = *~ .libs/* .libs spamass-milter.man
8 MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in \
9 config.log config.status configure configure.lineno stamp-h.in \
10 COPYING INSTALL config.guess config.sub install-sh missing mkinstalldirs \
11 ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS}
13 maintainer-clean-local:
14 -chmod -R +w autom4te* $(distdir)
15 rm -rf autom4te* $(distdir)
17 rm -f configure.lineno
19 # rebuild ChangeLog during dist, but only if it's a zero-byte file
22 if test ! -s $(distdir)/ChangeLog ; then \
23 cvs2cl --no-wrap -S -U contrib/users --stdout > $(distdir)/ChangeLog ; \
26 .PHONY: sign upload changelog dist-hook
28 DIST_ARCHIVE_SIGS=${DIST_ARCHIVES:S/$/.sig/}
30 # Bah. Automake does not have a dist-local hook which would let me
31 # create the PGP sigs when the distfiles themselves are built. So
32 # build them just before upload.
34 rm -f ${DIST_ARCHIVE_SIGS}
35 for file in ${DIST_ARCHIVES} ; \
37 gpg -b -a -u 6B56A1DD -o $$file.sig $$file ; \
41 rsync -a --progress ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS} dl.sv.nongnu.org:/releases/spamass-milt/
43 # ftp got disabled at some point?
44 #upload: dist-all sign
45 # ncftpput savannah.gnu.org incoming/savannah/spamass-milt \
46 # ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS}
50 # rsync -a --progress $(distdir).tar.bz2 $(distdir).tar.gz subversions.gnu.org:/upload/spamass-milt/
53 cvs2cl --no-wrap -S -U contrib/users
56 $(AWK) -f mdoc2man.awk $< > $@
59 man_MANS = spamass-milter.1
61 man1_MANS = spamass-milter.man
63 sbin_PROGRAMS = spamass-milter
64 DEB_CONTRIB = contrib/spamass-milter
65 RH_CONTRIB = contrib/spamass-milter-redhat.rc \
66 contrib/spamass-milter.spec \
67 contrib/spamass-milter.spec.in
68 FBSD_CONTRIB = contrib/spamass-milter.sh
69 MISC_CONTRIB = contrib/README.gnus
70 spamass_milter_SOURCES = spamass-milter.cpp spamass-milter.h
71 spamass_milter_LDADD = @LIBOBJS@
72 EXTRA_DIST = $(DEB_CONTRIB) \
80 spamass-milter.cpp: spamass-milter.h