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@
17 HCVERSION = hcversion.h
20 BUILT_SOURCES = keymap_defs.h patchlist.c reldate.h $(HCVERSION)
22 bin_PROGRAMS = mutt @DOTLOCK_TARGET@ @PGPAUX_TARGET@
24 addrbook.c alias.c attach.c base64.c browser.c buffy.c color.c \
26 commands.c complete.c compose.c copy.c curs_lib.c curs_main.c date.c \
27 edit.c enter.c flags.c init.c filter.c from.c \
29 handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c \
30 main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c \
31 postpone.c query.c recvattach.c recvcmd.c \
32 rfc822.c rfc1524.c rfc2047.c rfc2231.c rfc3676.c \
33 score.c send.c sendlib.c signal.c sort.c \
34 status.c system.c thread.c charset.c history.c lib.c \
35 muttlib.c editmsg.c mbyte.c \
36 url.c ascii.c crypt-mod.c crypt-mod.h safe_asprintf.c
38 nodist_mutt_SOURCES = $(BUILT_SOURCES)
40 mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(MUTTLIBS) \
41 $(INTLLIBS) $(LIBICONV) $(GPGME_LIBS)
43 mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAPDEPS) \
46 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
47 -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
50 AM_CPPFLAGS=-I. -I$(top_srcdir) $(IMAP_INCLUDES) $(GPGME_CFLAGS) -Iintl
54 EXTRA_mutt_SOURCES = account.c bcache.c crypt-gpgme.c crypt-mod-pgp-classic.c \
55 crypt-mod-pgp-gpgme.c crypt-mod-smime-classic.c \
56 crypt-mod-smime-gpgme.c dotlock.c gnupgparse.c hcache.c md5.c \
57 mutt_idna.c mutt_sasl.c mutt_socket.c mutt_ssl.c mutt_ssl_gnutls.c \
58 mutt_tunnel.c pgp.c pgpinvoke.c pgpkey.c pgplib.c pgpmicalg.c \
59 pgppacket.c pop.c pop_auth.c pop_lib.c remailer.c resize.c sha1.c \
60 smime.c smtp.c utf8.c wcwidth.c \
61 bcache.h browser.h hcache.h mbyte.h mutt_idna.h remailer.h url.h
63 EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO UPDATING \
65 attach.h buffy.h charset.h copy.h crypthash.h dotlock.h functions.h gen_defs \
66 globals.h hash.h history.h init.h keymap.h mutt_crypt.h \
67 mailbox.h mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
68 mutt_regex.h mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
69 mx.h pager.h pgp.h pop.h protos.h rfc1524.h rfc2047.h \
70 rfc2231.h rfc822.h rfc3676.h sha1.h sort.h mime.types VERSION prepare \
71 _regex.h OPS.MIX README.SECURITY remailer.c remailer.h browser.h \
72 mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h \
73 README.SSL smime.h group.h \
74 muttbug pgppacket.h depcomp ascii.h BEWARE PATCHES patchlist.sh \
75 ChangeLog mkchangelog.sh mutt_idna.h \
76 snprintf.c regex.c crypt-gpgme.h hcachever.sh.in
78 EXTRA_SCRIPTS = smime_keys
80 mutt_dotlock_SOURCES = mutt_dotlock.c
81 mutt_dotlock_LDADD = @LIBOBJS@
82 mutt_dotlock_DEPENDENCIES = @LIBOBJS@
84 pgpring_SOURCES = pgppubring.c pgplib.c lib.c extlib.c sha1.c md5.c pgppacket.c ascii.c
85 pgpring_LDADD = @LIBOBJS@ $(INTLLIBS)
86 pgpring_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS)
88 mutt_md5_SOURCES = md5.c
89 mutt_md5_CFLAGS = -DMD5UTIL
92 noinst_PROGRAMS = $(MUTT_MD5)
94 mutt_dotlock.c: dotlock.c
95 cp $(srcdir)/dotlock.c mutt_dotlock.c
97 CLEANFILES = mutt_dotlock.c keymap_alldefs.h $(BUILT_SOURCES)
99 DISTCLEANFILES= flea smime_keys
101 ACLOCAL_AMFLAGS = -I m4
103 LDADD = @LIBOBJS@ @INTLLIBS@
109 smime_keys: $(srcdir)/smime_keys.pl
110 cp $(srcdir)/smime_keys.pl smime_keys
113 keymap_defs.h: $(OPS) $(srcdir)/gen_defs
114 $(srcdir)/gen_defs $(OPS) > keymap_defs.h
116 keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME $(srcdir)/gen_defs
118 $(srcdir)/gen_defs $(srcdir)/OPS $(srcdir)/OPS.PGP \
119 $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
122 reldate.h: $(srcdir)/ChangeLog
123 echo 'const char *ReleaseDate = "'`head -n 1 $(srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`'";' > reldate.h.tmp; \
124 cmp -s reldate.h.tmp reldate.h || cp reldate.h.tmp reldate.h; \
127 hcversion.h: $(srcdir)/mutt.h $(srcdir)/rfc822.h hcachever.sh $(MUTT_MD5)
128 ( echo '#include "config.h"'; echo '#include "mutt.h"'; ) \
129 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - | sh ./hcachever.sh hcversion.h
131 patchlist.c: $(srcdir)/PATCHES $(srcdir)/patchlist.sh
132 $(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
135 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then \
136 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
137 ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
139 if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
140 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/mutt_dotlock && \
141 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/mutt_dotlock || \
142 { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
146 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
147 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/mime.types.dist
148 -if [ ! -f $(DESTDIR)$(sysconfdir)/mime.types ]; then \
149 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir); \
153 for i in mime.types ; do \
154 if cmp -s $(DESTDIR)$(sysconfdir)/$$i.dist $(DESTDIR)$(sysconfdir)/$$i ; then \
155 rm $(DESTDIR)$(sysconfdir)/$$i ; \
157 rm $(DESTDIR)$(sysconfdir)/$${i}.dist ; \
161 cat /dev/null > $(top_srcdir)/PATCHES
164 (cd $(top_srcdir) && ./check_sec.sh)
167 @echo "make commit is obsolete; use hg-commit"; false
171 sh ./mkchangelog.sh | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \
172 $${VISUAL:-vi} ChangeLog)
175 (cd $(srcdir) && ./build-release )
178 (cd doc && $(MAKE) update-doc)
180 .PHONY: commit pclean check-security