# Makefile for fetchmail
SUBDIRS= . po
-AUTOMAKE_OPTIONS= 1.8 foreign no-dist-gzip dist-bzip2
+AUTOMAKE_OPTIONS= 1.11 foreign no-dist-gzip dist-bzip2 dist-xz
AM_CPPFLAGS= -I$(srcdir)/libesmtp
ACLOCAL_AMFLAGS= -I m4 -I m4-local
pys= fetchmailconf.py
pym= fetchmailconf.man
-if HAVE_PYTHON
nodist_bin_SCRIPTS= fetchmailconf
python_PYTHON= $(pys)
dist_man1_MANS+= $(pym)
-EXTRA_DIST=
-else
-noinst_PYTHON= $(pys)
-EXTRA_DIST= $(pym)
-endif
CLEANFILES= $(nodist_bin_SCRIPTS)
smbencrypt.h smbdes.c smbencrypt.c smbmd4.c smbutil.c \
libesmtp/gethostbyname.h libesmtp/gethostbyname.c \
smbtypes.h fm_getaddrinfo.c tls.c rfc822valid.c \
- xmalloc.h sdump.h sdump.c
+ xmalloc.h sdump.h sdump.c x509_name_match.c \
+ fm_strl.h md5c.c
+if NTLM_ENABLE
+libfm_a_SOURCES += ntlmsubr.c
+endif
libfm_a_LIBADD= $(EXTRAOBJ)
libfm_a_DEPENDENCIES= $(EXTRAOBJ)
LDADD = libfm.a @LIBINTL@ $(LIBOBJS)
check_PROGRAMS=
-TESTS= t.smoke t.validate-xhtml
+TESTS= t.smoke t.validate-xhtml10 t.validate-xhtml t.x509_name_match
TESTS_ENVIRONMENT= srcdir="$(srcdir)" LC_ALL=C TZ=UTC SHELL="$(SHELL)" $(SHELL)
if NEED_TRIO
opie.c interface.c netrc.c \
unmime.c conf.c checkalias.c \
lock.h lock.c \
- rcfile_l.l rcfile_y.y ucs/norm_charmap.c
+ rcfile_l.l rcfile_y.y \
+ ucs/norm_charmap.c ucs/norm_charmap.h
if POP2_ENABLE
fetchmail_SOURCES += pop2.c
endif
fetchmail_SOURCES += libesmtp/getaddrinfo.h libesmtp/getaddrinfo.c
endif
-check_PROGRAMS += rfc822 unmime netrc rfc2047e mxget rfc822valid
+check_PROGRAMS += rfc822 unmime netrc rfc2047e mxget rfc822valid \
+ x509_name_match
rfc2047e_CFLAGS= -DTEST
rfc822_CFLAGS= -DMAIN
+x509_name_match_CFLAGS= -DTEST
+
unmime_SOURCES= unmime.c
unmime_CFLAGS= -DSTANDALONE -DHAVE_CONFIG_H -I$(builddir)
README.packaging README.SSL-SERVER \
fetchmail-FAQ.book fetchmail-FAQ.pdf fetchmail-FAQ.html \
Mailbox-Names-UTF7.txt Mailbox-Names-UTF7.html \
+ fetchmail-SA-2012-02.txt \
+ fetchmail-SA-2012-01.txt \
+ fetchmail-SA-2011-01.txt \
+ fetchmail-EN-2010-03.txt \
fetchmail-SA-2010-02.txt \
fetchmail-SA-2010-01.txt \
fetchmail-SA-2009-01.txt \
# extra directories to ship
distdirs = rh-config contrib beos
-EXTRA_DIST+= $(DISTDOCS) $(distdirs) \
+EXTRA_DIST= $(DISTDOCS) $(distdirs) \
fetchmail.spec fetchmail.xpm \
trio/CHANGES trio/README \
strlcpy.3 bighand.png \
m4/codeset.m4 \
m4/gettext.m4 \
+ m4/glibc2.m4 \
m4/glibc21.m4 \
m4/iconv.m4 \
m4/intdiv0.m4 \
+ m4/intl.m4 \
+ m4/intldir.m4 \
+ m4/intlmacosx.m4 \
m4/intmax.m4 \
m4/inttypes-pri.m4 \
- m4/inttypes.m4 \
m4/inttypes_h.m4 \
- m4/isc-posix.m4 \
m4/lcmessage.m4 \
m4/lib-ld.m4 \
m4/lib-link.m4 \
m4/lib-prefix.m4 \
- m4/longdouble.m4 \
+ m4/lock.m4 \
m4/longlong.m4 \
m4/nls.m4 \
m4/po.m4 \
m4/printf-posix.m4 \
m4/progtest.m4 \
- m4/signed.m4 \
m4/size_max.m4 \
m4/stdint_h.m4 \
m4/uintmax_t.m4 \
- m4/ulonglong.m4 \
+ m4/visibility.m4 \
m4/wchar_t.m4 \
m4/wint_t.m4 \
m4/xsize.m4 \
AWK=$(AWK) $(SHELL) $(srcdir)/dist-tools/html2txt $(srcdir)/todo.html >$@ || { rm -f $@ ; exit 1 ; }
fetchmail-man.html: fetchmail.man $(srcdir)/dist-tools/manServer.pl
- env - "PATH=$$PATH" $(srcdir)/dist-tools/manServer.pl $(srcdir)/fetchmail.man >$@ \
+ env - "PATH=$$PATH" perl -T $(srcdir)/dist-tools/manServer.pl $(srcdir)/fetchmail.man >$@ \
|| { rm -f $@ ; exit 1 ; }
dist-hook:
rsync -Lrtvz translationproject.org::tp/latest/fetchmail/ $(top_srcdir)/po
cd $(top_builddir)/po && $(MAKE) update-po
-Mailbox-Names-UTF7.html: Mailbox-Names-UTF7.txt
- asciidoc --unsafe -a toc -o $@ $<
+SUFFIXES = .html .txt
+.txt.html:
+ asciidoc --unsafe -a toc -a data-uri -o $@ $< || { rm -f $@ ; exit 1 ; }
# The following sets edit modes for GNU EMACS.
# Local Variables: