]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blob - Makefile.am
adc687e2f80bd114cc708dd2bcb22b452ef0198e
[deb_pkgs/spamass-milter.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ## $Id: Makefile.am,v 1.21 2005/02/05 07:34:11 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 = *~ .deps/* .libs/* .deps .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         ncftpput savannah.gnu.org incoming/savannah/spamass-milt \
42                 ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS}
43
44 # The good old way
45 #upload: dist-all
46 #       rsync -a --progress $(distdir).tar.bz2 $(distdir).tar.gz subversions.gnu.org:/upload/spamass-milt/
47
48 changelog:
49         cvs2cl --no-wrap -S -U contrib/users 
50
51 .1.man: mdoc2man.awk
52         $(AWK) -f mdoc2man.awk $< > $@
53
54 if HAVE_MDOC
55 man_MANS =      spamass-milter.1
56 else
57 man1_MANS =     spamass-milter.man
58 endif
59 sbin_PROGRAMS = spamass-milter
60 DEB_CONTRIB =   contrib/spamass-milter
61 RH_CONTRIB =    contrib/spamass-milter-redhat.rc \
62                 contrib/spamass-milter.spec \
63                 contrib/spamass-milter.spec.in
64 FBSD_CONTRIB =  contrib/spamass-milter.sh
65 MISC_CONTRIB =  contrib/README.gnus
66 spamass_milter_SOURCES = spamass-milter.cpp spamass-milter.h 
67 spamass_milter_LDADD = @LIBOBJS@
68 EXTRA_DIST =    $(DEB_CONTRIB) \
69                 $(RH_CONTRIB) \
70                 $(FBSD_CONTRIB) \
71                 $(MISC_CONTRIB) \
72                 mdoc2man.awk \
73                 spamass-milter.1.in \
74                 subst_poll.h
75
76 spamass-milter.cpp: spamass-milter.h