X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=Makefile.am;h=a71cd55f8da0009c438436bc315054de697f5cfb;hp=71d7cc421cf914c62958f7bb22cd0f5962861096;hb=a5b02206150dc653355cdc60286c27482b5a4f93;hpb=cf69ddd650f124d3aed242285434ba2b97fb4b79 diff --git a/Makefile.am b/Makefile.am index 71d7cc4..a71cd55 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,7 +23,7 @@ SUBDIRS = m4 po intl doc contrib lib $(IMAP_SUBDIR) $(POP_SUBDIR) $(NNTP_SUBDIR) bin_SCRIPTS = muttngbug fleang -BUILT_SOURCES = keymap_defs.h patchlist.c +BUILT_SOURCES = keymap_defs.h patchlist.c svnrev.h bin_PROGRAMS = muttng @DOTLOCK_TARGET@ @PGPAUX_TARGET@ @SMIMEAUX_TARGET@ muttng_SOURCES = $(BUILT_SOURCES) \ @@ -38,7 +38,7 @@ muttng_SOURCES = $(BUILT_SOURCES) \ handler.c hash.c hcache.c hdrline.c headers.c help.c history.c hook.c \ init.c \ keymap.c \ - lib.c \ + lib.c list.c \ main.c mbox.c mbyte.c md5c.c menu.c mh.c muttlib.c mutt_idna.c mx.c \ pager.c parse.c pattern.c postpone.c \ query.c \ @@ -83,6 +83,7 @@ EXTRA_muttng_SOURCES = \ alias.h \ buffer.h browser.h \ enter.h \ + list.h \ mbyte.h remailer.h url.h state.h \ pgppacket.c mutt_idna.h mutt_libesmtp.c \ crypt-mod-pgp-classic.c crypt-mod-smime-classic.c \ @@ -90,11 +91,12 @@ EXTRA_muttng_SOURCES = \ EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP OPS.CRYPT OPS.SMIME TODO \ configure acconfig.h \ - account.h alias.h attach.h \ + account.h alias.h attach.h recvattach.h handler.h thread.h \ buffer.h buffy.h \ charset.h compress.h copy.h crypthash.h \ dotlock.h functions.h gen_defs \ - enter.h \ + enter.h recvattach.h handler.h thread.h \ + list.h \ globals.h hash.h history.h init.h keymap.h mutt_crypt.h \ mapping.h md5.h mime.h mutt.h mutt_curses.h mutt_menu.h \ mutt_sasl.h mutt_socket.h mutt_ssl.h mutt_tunnel.h \ @@ -123,7 +125,7 @@ mutt_dotlock.c: dotlock.c cp $(srcdir)/dotlock.c mutt_dotlock.c CLEANFILES = mutt_dotlock.c stamp-doc-rc makedoc \ - keymap_alldefs.h keymap_defs.h patchlist.c + keymap_alldefs.h keymap_defs.h patchlist.c svnrev.h ACLOCAL_AMFLAGS = -I m4 @@ -149,6 +151,13 @@ keymap_alldefs.h: $(srcdir)/OPS $(srcdir)/OPS.PGP $(srcdir)/OPS.MIX $(srcdir)/OP $(srcdir)/OPS.MIX $(srcdir)/OPS.CRYPT $(srcdir)/OPS.SMIME \ > keymap_alldefs.h +svnrev.h: + if test -f "$(srcdir)/.svn/entries" ; then \ + echo "#define MUTTNG_SVNREV \"r`grep revision $(srcdir)/.svn/entries | sort -r | uniq | head -n 1 | cut -d '"' -f 2`\"" > svnrev.h ; \ + else \ + echo "#define MUTTNG_SVNREV \"`date "+%Y%m%d"`\"" > svnrev.h ; \ + fi + reldate: echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h @@ -163,7 +172,7 @@ install-exec-hook: if test -f $(DESTDIR)$(bindir)/muttng_dotlock && test x@DOTLOCK_GROUP@ != x ; then \ chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/muttng_dotlock && \ chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/muttng_dotlock || \ - { echo "Can't fix muttng_dotlock's permissions!" >&2 ; exit 1 ; } \ + { echo "Can't fix muttng_dotlock's permissions!" >&2 ; } \ fi install-data-local: Muttngrc