]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - Makefile.am
upgrade spamass-mitler
[deb_pkgs/spamass-milter.git] / Makefile.am
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 $
3
4 AUTOMAKE_OPTIONS = no-dependencies foreign dist-bzip2
5
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}
12
13 maintainer-clean-local:
14         -chmod -R +w autom4te* $(distdir)
15         rm -rf autom4te* $(distdir)
16 distclean-local:
17         rm -f configure.lineno
18
19 # rebuild ChangeLog during dist, but only if it's a zero-byte file
20 # (i.e. clean CVS co)
21 dist-hook: 
22         if test ! -s $(distdir)/ChangeLog ; then \
23                 cvs2cl --no-wrap -S -U contrib/users --stdout > $(distdir)/ChangeLog ; \
24         fi
25
26 .PHONY: sign upload changelog dist-hook
27
28 DIST_ARCHIVE_SIGS=${DIST_ARCHIVES:S/$/.sig/}
29
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.
33 sign: dist-all
34         rm -f ${DIST_ARCHIVE_SIGS}
35         for file in ${DIST_ARCHIVES} ; \
36         do \
37                 gpg -b -a -u 6B56A1DD -o $$file.sig $$file ; \
38         done
39
40 upload: dist-all sign
41         rsync -a --progress ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS} dl.sv.nongnu.org:/releases/spamass-milt/
42
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}
47
48 # The good old way
49 #upload: dist-all
50 #       rsync -a --progress $(distdir).tar.bz2 $(distdir).tar.gz subversions.gnu.org:/upload/spamass-milt/
51
52 changelog:
53         cvs2cl --no-wrap -S -U contrib/users 
54
55 .1.man: mdoc2man.awk
56         $(AWK) -f mdoc2man.awk $< > $@
57
58 if HAVE_MDOC
59 man_MANS =      spamass-milter.1
60 else
61 man1_MANS =     spamass-milter.man
62 endif
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) \
73                 $(RH_CONTRIB) \
74                 $(FBSD_CONTRIB) \
75                 $(MISC_CONTRIB) \
76                 mdoc2man.awk \
77                 spamass-milter.1.in \
78                 subst_poll.h
79
80 spamass-milter.cpp: spamass-milter.h