1 ## Process this file with automake to produce Makefile.in
2 ## Use aclocal -I m4; automake --foreign
4 AUTOMAKE_OPTIONS = foreign
5 EXTRA_PROGRAMS = muttng_dotlock pgpringng pgpewrapng makedoc
9 IMAP_INCLUDES = -I$(top_srcdir)/imap
14 POP_INCLUDES = -I$(top_srcdir)/pop
19 NNTP_INCLUDES = -I$(top_srcdir)/nntp
22 SUBDIRS = intl m4 po lib-lib intl doc contrib lib $(IMAP_SUBDIR) $(POP_SUBDIR) $(NNTP_SUBDIR)
24 bin_SCRIPTS = muttngbug fleang
26 BUILT_SOURCES = keymap_defs.h version.h
28 bin_PROGRAMS = muttng @DOTLOCK_TARGET@ @PGPAUX_TARGET@ @SMIMEAUX_TARGET@
29 muttng_SOURCES = $(BUILT_SOURCES) \
31 base64.c buffer.c browser.c buffy.c \
32 charset.c color.c compress.c crypt.c cryptglue.c commands.c complete.c \
33 compose.c copy.c curs_lib.c curs_main.c crypt-mod.c crypt-mod.h \
35 edit.c editmsg.c enter.c \
36 flags.c filter.c from.c \
38 handler.c hash.c hcache.c hdrline.c headers.c help.c history.c hook.c \
42 main.c mbox.c mbyte.c md5c.c menu.c mh.c muttlib.c mutt_idna.c mx.c \
43 pager.c parse.c pattern.c postpone.c \
45 recvattach.c recvcmd.c rfc822.c rfc1524.c rfc2047.c rfc2231.c rfc3676.c \
46 score.c send.c sendlib.c sidebar.c signal.c sort.c state.c status.c system.c \
52 muttng_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(LIBIMAP) $(LIBPOP) $(LIBNNTP) \
53 -Llib-lib -llib -Llib -lsane $(MUTTLIBS) $(INTLLIBS) $(LIBICONV)
55 muttng_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ \
56 $(top_builddir)/lib-lib/liblib.a \
57 $(top_builddir)/lib/libsane.a \
58 $(LIBIMAPDEPS) $(LIBPOPDEPS) $(LIBNNTPDEPS) $(INTLDEPS)
60 makedoc_SOURCES = makedoc.c
62 makedoc_DEPENDENCIES =
64 # $(makedoc_OBJECTS): $(makedoc_SOURCES)
65 # $(HOST_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) -c $<
67 # makedoc: $(makedoc_OBJECTS) $(makedoc_DEPENDENCIES)
69 # $(HOST_CC) $(AM_CFLAGS) $(LDFLAGS) $(makedoc_LDFLAGS) $(makedoc_OBJECTS) $(makedoc_LDADD) -o makedoc
73 DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
74 -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\" \
75 -DHAVE_CONFIG_H=1 -DPKGDOCDIR=\"$(docdir)\"
77 INCLUDES=-I. -I$(top_srcdir) $(IMAP_INCLUDES) $(POP_INCLUDES) $(NNTP_INCLUDES) $(LIBGPGME_CFLAGS) -Iintl
79 CPPFLAGS=@CPPFLAGS@ -I$(includedir)
81 EXTRA_muttng_SOURCES = \
82 account.c md5c.c mutt_sasl.c mutt_socket.c mutt_ssl.c \
83 mutt_tunnel.c smime.c pgp.c pgpinvoke.c pgpkey.c \
84 pgplib.c sha1.c pgpmicalg.c gnupgparse.c resize.c dotlock.c remailer.c \
89 mbyte.h remailer.h url.h state.h \
90 pgppacket.c mutt_idna.h mutt_libesmtp.c \
91 crypt-mod-pgp-classic.c crypt-mod-smime-classic.c \
94 EXTRA_DIST = config.rpath COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO \
95 configure acconfig.h \
96 account.h alias.h attach.h recvattach.h handler.h thread.h \
98 charset.h compress.h copy.h crypthash.h \
99 dotlock.h functions.h gen_defs \
100 enter.h recvattach.h handler.h thread.h \
102 globals.h hash.h history.h init.h keymap.h mutt_crypt.h \
103 mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \
104 mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \
105 mbox.h mh.h mx.h pager.h pgp.h protos.h reldate.h rfc1524.h rfc2047.h \
106 rfc2231.h rfc822.h rfc3676.h \
107 sha1.h sort.h mime.types autogen.sh \
108 _regex.h OPS.MIX remailer.c remailer.h browser.h state.h \
109 mbyte.h lib.h extlib.c pgpewrap.c smime_keys.pl pgplib.h Muttngrc.head Muttngrc \
110 makedoc.c stamp-doc-rc README.SSL smime.h\
111 muttngbug pgppacket.h depcomp BEWARE \
112 mkchangelog.sh cvslog2changelog.pl mutt_idna.h \
113 regex.c mutt_libesmtp.h crypt-gpgme.h
115 muttng_dotlock_SOURCES = dotlock.c
116 muttng_dotlock_LDADD = @LIBOBJS@
117 muttng_dotlock_DEPENDENCIES = @LIBOBJS@
119 pgpringng_SOURCES = pgppubring.c pgplib.c lib.c extlib.c sha1.c md5c.c pgppacket.c
120 pgpringng_LDADD = @LIBOBJS@ $(INTLLIBS) -Llib-lib -llib -Llib -lsane
121 pgpringng_DEPENDENCIES = @LIBOBJS@ $(INTLDEPS)
123 pgpewrapng_SOURCES = pgpewrap.c
125 pgpewrapng_DEPENDENCIES =
127 CLEANFILES = stamp-doc-rc makedoc \
128 keymap_alldefs.h keymap_defs.h version.h
130 ACLOCAL_AMFLAGS = -I m4
132 LDADD = @LIBOBJS@ @LIBINTL@
140 smime_keysng: $(srcdir)/smime_keys.pl
141 cp $(srcdir)/smime_keys.pl smime_keysng
142 chmod +x smime_keysng
144 Makefile: $(BUILT_SOURCES)
146 keymap_defs.h: $(OPS) $(srcdir)/gen_defs
147 $(srcdir)/gen_defs $(OPS) > keymap_defs.h
149 keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME $(srcdir)/gen_defs
150 $(srcdir)/gen_defs $(srcdir)/OPS $(srcdir)/OPS.PGP \
151 $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \
154 version.h: Makefile.am
155 echo "#define MUTT_REVISION \"git\"" > version.h
158 echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h
161 if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/muttng_dotlock ; then \
162 rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
163 ln -sf $(DESTDIR)$(bindir)/muttng_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
165 if test -f $(DESTDIR)$(bindir)/muttng_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
166 chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/muttng_dotlock && \
167 chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/muttng_dotlock || \
168 { echo "Can't fix muttng_dotlock's permissions!" >&2 ; } \
171 install-data-local: Muttngrc
172 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
173 -if [ -f $(DESTDIR)$(pkgdatadir)/Muttngrc ] ; then \
174 mv $(DESTDIR)$(pkgdatadir)/Muttngrc* $(DESTDIR)$(sysconfdir) ; \
175 elif [ -f $(DESTDIR)$(pkgdatadir)/../Muttngrc ] ; then \
176 mv $(DESTDIR)$(pkgdatadir)/../Muttngrc* $(DESTDIR)$(sysconfdir) ; \
177 elif [ ! -f $(DESTDIR)$(sysconfdir)/Muttngrc ] ; then \
178 $(INSTALL) -m 644 Muttngrc $(DESTDIR)$(sysconfdir) ; \
180 -if [ ! -f $(DESTDIR)$(sysconfdir)/muttng-mime.types ]; then \
181 $(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(sysconfdir)/muttng-mime.types; \
185 # kluge around automake problems.
188 -for file in $(BUILT_SOURCES) ; do rm -f $(distdir)/$$file ; done
191 (cd $(srcdir) && ./build-release )
193 update-doc: stamp-doc-rc
194 (cd doc && $(MAKE) update-doc)
196 Muttngrc: stamp-doc-rc
198 stamp-doc-rc: $(srcdir)/init.h makedoc Muttngrc.head
199 -rm -f Muttngrc stamp-doc-rc
200 $(CPP) $(INCLUDES) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C \
201 $(srcdir)/init.h | ./makedoc -c | cat Muttngrc.head - > Muttngrc