1 ## Process this file with automake to produce Makefile.in
2 ## Use aclocal -I m4; automake --foreign
4 AUTOMAKE_OPTIONS = 1.6 foreign
5 EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap mutt_md5
9 IMAP_INCLUDES = -I$(top_srcdir)/imap
12 SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR)
14 bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@
16 BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h hcversion.h
18 bin_PROGRAMS = mutt @DOTLOCK_TARGET@ @PGPAUX_TARGET@
20 addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c \
22 commands.c complete.c compose.c copy.c curs_lib.c curs_main.c date.c \
23 edit.c enter.c flags.c init.c filter.c from.c \
25 handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c \
26 main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c \
27 postpone.c query.c recvattach.c recvcmd.c \
28 rfc822.c rfc1524.c rfc2047.c rfc2231.c rfc3676.c \
29 score.c send.c sendlib.c signal.c sort.c \
30 status.c system.c thread.c charset.c history.c lib.c \
31 muttlib.c editmsg.c mbyte.c \
32 url.c ascii.c crypt-mod.c crypt-mod.h
34 nodist_mutt_SOURCES = $(BUILT_SOURCES)
36 mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS) \
37 $(INTLLIBS) $(LIBICONV) $(GPGME_LIBS)
39 mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAPDEPS) \
42 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
43 -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
46 AM_CPPFLAGS=-I. -I$(top_srcdir) $(IMAP_INCLUDES) $(GPGME_CFLAGS) -Iintl
50 EXTRA_mutt_SOURCES = account.c bcache.c crypt-gpgme.c crypt-mod-pgp-classic.c \
51 crypt-mod-pgp-gpgme.c crypt-mod-smime-classic.c \
52 crypt-mod-smime-gpgme.c dotlock.c gnupgparse.c hcache.c md5.c \
53 mutt_idna.c mutt_sasl.c mutt_socket.c mutt_ssl.c mutt_ssl_gnutls.c \
54 mutt_tunnel.c pgp.c pgpinvoke.c pgpkey.c pgplib.c pgpmicalg.c \
55 pgppacket.c pop.c pop_auth.c pop_lib.c remailer.c resize.c sha1.c \
56 smime.c smtp.c utf8.c wcwidth.c \
57 bcache.h browser.h hcache.h mbyte.h mutt_idna.h remailer.h url.h
59 EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \
61 attach.h buffy.h charset.h copy.h crypthash.h dotlock.h functions.h gen_defs \
62 globals.h hash.h history.h init.h keymap.h mutt_crypt.h \
63 mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
64 mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
65 mx.h pager.h pgp.h pop.h protos.h rfc1524.h rfc2047.h \
66 rfc2231.h rfc822.h rfc3676.h sha1.h sort.h mime.types VERSION prepare \
67 _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \
68 mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h \
70 muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \
71 ChangeLog mkchangelog.sh mutt_idna.h \
72 snprintf.c regex.c crypt-gpgme.h hcachever.sh.in
74 EXTRA_SCRIPTS = smime_keys
76 mutt_dotlock_SOURCES = mutt_dotlock.c
77 mutt_dotlock_LDADD = @LIBOBJS@
78 mutt_dotlock_DEPENDENCIES = @LIBOBJS@
80 pgpring_SOURCES = pgppubring.c pgplib.c lib.c extlib.c sha1.c md5.c pgppacket.c ascii.c
81 pgpring_LDADD = @LIBOBJS@ $(INTLLIBS)
82 pgpring_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS)
84 mutt_md5_SOURCES = md5.c
85 mutt_md5_CFLAGS = -DMD5UTIL
88 noinst_PROGRAMS = $(MUTT_MD5)
90 mutt_dotlock.c: dotlock.c
91 cp $(srcdir)/dotlock.c mutt_dotlock.c
93 CLEANFILES = mutt_dotlock.c keymap_alldefs.h $(BUILT_SOURCES)
95 DISTCLEANFILES= flea smime_keys
97 ACLOCAL_AMFLAGS = -I m4
99 LDADD = @LIBOBJS@ @INTLLIBS@
105 smime_keys: $(srcdir)/smime_keys.pl
106 cp $(srcdir)/smime_keys.pl smime_keys
109 keymap_defs.h: $(OPS) $(srcdir)/gen_defs
110 $(srcdir)/gen_defs $(OPS) > keymap_defs.h
112 keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME $(srcdir)/gen_defs
114 $(srcdir)/gen_defs $(srcdir)/OPS $(srcdir)/OPS.PGP \
115 $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
118 reldate.h: $(srcdir)/ChangeLog
119 echo 'const char *ReleaseDate = "'`head -n 1 $(srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`'";' > reldate.h.tmp; \
120 cmp -s reldate.h.tmp reldate.h || cp reldate.h.tmp reldate.h; \
123 hcversion.h: $(srcdir)/mutt.h $(srcdir)/rfc822.h hcachever.sh $(MUTT_MD5)
124 ( echo '#include "config.h"'; echo '#include "mutt.h"'; ) \
125 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - | sh ./hcachever.sh hcversion.h
127 patchlist.c: $(srcdir)/PATCHES $(srcdir)/patchlist.sh
128 $(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
131 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then \
132 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
133 ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
135 if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
136 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/mutt_dotlock && \
137 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/mutt_dotlock || \
138 { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
142 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
143 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/mime.types.dist
144 -if [ ! -f $(DESTDIR)$(sysconfdir)/mime.types ]; then \
145 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir); \
149 for i in mime.types ; do \
150 if cmp -s $(DESTDIR)$(sysconfdir)/$$i.dist $(DESTDIR)$(sysconfdir)/$$i ; then \
151 rm $(DESTDIR)$(sysconfdir)/$$i ; \
153 rm $(DESTDIR)$(sysconfdir)/$${i}.dist ; \
157 cat /dev/null > $(top_srcdir)/PATCHES
160 (cd $(top_srcdir) && ./check_sec.sh)
163 @echo "make commit is obsolete; use hg-commit"; false
167 sh ./mkchangelog.sh | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \
168 $${VISUAL:-vi} ChangeLog)
171 (cd $(srcdir) && ./build-release )
174 (cd doc && $(MAKE) update-doc)
176 .PHONY: commit pclean check-security