forked from andybalholm/spamass-milter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
80 lines (66 loc) · 2.38 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## Process this file with automake to produce Makefile.in
## $Id: Makefile.am,v 1.24 2011/02/14 21:56:15 dnelson Exp $
AUTOMAKE_OPTIONS = no-dependencies foreign dist-bzip2
# The number of files autoconf leaves lying around after a clean is amazing.
CLEANFILES = *~ .libs/* .libs spamass-milter.man
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in \
config.log config.status configure configure.lineno stamp-h.in \
COPYING INSTALL config.guess config.sub install-sh missing mkinstalldirs \
${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS}
maintainer-clean-local:
-chmod -R +w autom4te* $(distdir)
rm -rf autom4te* $(distdir)
distclean-local:
rm -f configure.lineno
# rebuild ChangeLog during dist, but only if it's a zero-byte file
# (i.e. clean CVS co)
dist-hook:
if test ! -s $(distdir)/ChangeLog ; then \
cvs2cl --no-wrap -S -U contrib/users --stdout > $(distdir)/ChangeLog ; \
fi
.PHONY: sign upload changelog dist-hook
DIST_ARCHIVE_SIGS=${DIST_ARCHIVES:S/$/.sig/}
# Bah. Automake does not have a dist-local hook which would let me
# create the PGP sigs when the distfiles themselves are built. So
# build them just before upload.
sign: dist-all
rm -f ${DIST_ARCHIVE_SIGS}
for file in ${DIST_ARCHIVES} ; \
do \
gpg -b -a -u 6B56A1DD -o $$file.sig $$file ; \
done
upload: dist-all sign
rsync -a --progress ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS} dl.sv.nongnu.org:/releases/spamass-milt/
# ftp got disabled at some point?
#upload: dist-all sign
# ncftpput savannah.gnu.org incoming/savannah/spamass-milt \
# ${DIST_ARCHIVES} ${DIST_ARCHIVE_SIGS}
# The good old way
#upload: dist-all
# rsync -a --progress $(distdir).tar.bz2 $(distdir).tar.gz subversions.gnu.org:/upload/spamass-milt/
changelog:
cvs2cl --no-wrap -S -U contrib/users
.1.man: mdoc2man.awk
$(AWK) -f mdoc2man.awk $< > $@
if HAVE_MDOC
man_MANS = spamass-milter.1
else
man1_MANS = spamass-milter.man
endif
sbin_PROGRAMS = spamass-milter
DEB_CONTRIB = contrib/spamass-milter
RH_CONTRIB = contrib/spamass-milter-redhat.rc \
contrib/spamass-milter.spec \
contrib/spamass-milter.spec.in
FBSD_CONTRIB = contrib/spamass-milter.sh
MISC_CONTRIB = contrib/README.gnus
spamass_milter_SOURCES = spamass-milter.cpp spamass-milter.h
spamass_milter_LDADD = @LIBOBJS@
EXTRA_DIST = $(DEB_CONTRIB) \
$(RH_CONTRIB) \
$(FBSD_CONTRIB) \
$(MISC_CONTRIB) \
mdoc2man.awk \
spamass-milter.1.in \
subst_poll.h
spamass-milter.cpp: spamass-milter.h