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
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 mutt_idna.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 md5.c mutt_sasl.c mutt_socket.c mutt_ssl.c \
51 mutt_tunnel.c pop.c pop_auth.c pop_lib.c smime.c pgp.c pgpinvoke.c pgpkey.c \
52 pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
53 smtp.c browser.h mbyte.h remailer.h url.h \
54 crypt-mod-pgp-classic.c crypt-mod-smime-classic.c \
55 pgppacket.c mutt_idna.h hcache.h hcache.c bcache.c bcache.h mutt_ssl_gnutls.c \
56 crypt-gpgme.c crypt-mod-pgp-gpgme.c crypt-mod-smime-gpgme.c \
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 ChangeLog.old 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_dotlock.c: dotlock.c
85 cp $(srcdir)/dotlock.c mutt_dotlock.c
87 CLEANFILES = mutt_dotlock.c keymap_alldefs.h $(BUILT_SOURCES)
89 DISTCLEANFILES= flea smime_keys
91 ACLOCAL_AMFLAGS = -I m4
93 LDADD = @LIBOBJS@ @INTLLIBS@
99 smime_keys: $(srcdir)/smime_keys.pl
100 cp $(srcdir)/smime_keys.pl smime_keys
103 keymap_defs.h: $(OPS) $(srcdir)/gen_defs
104 $(srcdir)/gen_defs $(OPS) > keymap_defs.h
106 keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME $(srcdir)/gen_defs
108 $(srcdir)/gen_defs $(srcdir)/OPS $(srcdir)/OPS.PGP \
109 $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
112 reldate.h: $(srcdir)/ChangeLog
113 echo 'const char *ReleaseDate = "'`head -n 1 $(srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`'";' > reldate.h.tmp; \
114 cmp -s reldate.h.tmp reldate.h || cp reldate.h.tmp reldate.h; \
117 hcversion.h: $(srcdir)/mutt.h $(srcdir)/rfc822.h hcachever.sh
118 ( echo '#include "config.h"'; echo '#include "mutt.h"'; ) \
119 | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - | sh ./hcachever.sh hcversion.h
121 patchlist.c: $(srcdir)/PATCHES $(srcdir)/patchlist.sh
122 $(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
125 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then \
126 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
127 ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
129 if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
130 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/mutt_dotlock && \
131 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/mutt_dotlock || \
132 { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
136 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
137 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/mime.types.dist
138 -if [ ! -f $(DESTDIR)$(sysconfdir)/mime.types ]; then \
139 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir); \
143 for i in mime.types ; do \
144 if cmp -s $(DESTDIR)$(sysconfdir)/$$i.dist $(DESTDIR)$(sysconfdir)/$$i ; then \
145 rm $(DESTDIR)$(sysconfdir)/$$i ; \
147 rm $(DESTDIR)$(sysconfdir)/$${i}.dist ; \
150 # Don't make this one ChangeLog - it's intended to be
154 cat /dev/null > $(top_srcdir)/PATCHES
157 (cd $(top_srcdir) && ./check_sec.sh)
160 (cd $(top_srcdir) && cvs commit)
163 (cd $(top_srcdir) && cvs commit -m "# changelog commit" ChangeLog)
165 commit: pclean check-security commit-real update-changelog commit-changelog
169 sh ./mkchangelog.sh | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog; \
170 $${VISUAL:-vi} ChangeLog)
173 (cd $(srcdir) && ./build-release )
176 (cd doc && $(MAKE) update-doc)
178 .PHONY: commit pclean check-security commit-real commit-changelog
179 # .PHONY: changelog ChangeLog