# $Id$ ## Process this file with automake to produce Makefile.in ## Use aclocal; automake --foreign EXTRA_PROGRAMS = mutt_dotlock bin_PROGRAMS = mutt @DOTLOCK_TARGET@ mutt_SOURCES = addrbook.c alias.c attach.c browser.c buffy.c color.c \ commands.c complete.c compose.c copy.c curs_lib.c curs_main.c date.c \ edit.c enter.c flags.c init.c filter.c from.c getdomain.c \ handler.c hash.c hdrline.c headers.c help.c hook.c keymap.c \ main.c mbox.c menu.c mh.c mx.c pager.c parse.c pattern.c \ postpone.c query.c recvattach.c rfc822.c \ rfc1524.c rfc2047.c score.c send.c sendlib.c signal.c sort.c \ status.c system.c thread.c charset.c history.c lib.c mutt_LDADD = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(INTLLIBS) mutt_DEPENDENCIES = @MUTT_LIB_OBJECTS@ @LIBOBJS@ $(INTLDEPS) DEFS=-DSHAREDIR=\"$(sharedir)\" -DSYSCONFDIR=\"$(sysconfdir)\" INCLUDES=-I. -I$(includedir) non_us_sources = pgp.c pgpinvoke.c pgpkey.c pgppubring.c sha1dgst.c \ gnupgparse.c sha.h sha_locl.h \ doc/language.txt doc/language50.txt OPS.PGP doc/PGP-Notes EXTRA_mutt_SOURCES = pgp.c pgpinvoke.c pgpkey.c pgppubring.c sha1dgst.c \ gnupgparse.c resize.c dotlock.c pop.c imap.c socket.c EXTRA_DIST = COPYRIGHT GPL OPS OPS.PGP TODO acconfig.h attach.h \ buffy.h charset.h config.h copy.h dotlock.h functions.h gen_defs \ globals.h hash.h history.h imap.h init.h keymap.h \ mailbox.h mapping.h mime.h mutt.h mutt_curses.h mutt_menu.h \ mutt_regex.h mutt_socket.h mx.h pager.h parse.h pgp.h protos.h \ reldate.h rfc1524.h rfc2047.h rfc822.h sha.h sha_locl.h \ sort.h mime.types VERSION BUILT_SOURCES = mutt_dotlock.c keymap_defs.h mutt_dotlock_SOURCES = mutt_dotlock.c mutt_dotlock_LDADD = @LIBOBJS@ mutt_dotlock_DEPENDENCIES = @LIBOBJS@ mutt_dotlock.c: dotlock.c cp dotlock.c mutt_dotlock.c CLEANFILES = mutt_dotlock.c LDADD = @LIBOBJS@ @INTLLIBS@ SUBDIRS = doc intl po rx contrib charsets OPS=$(srcdir)/OPS $(srcdir)/OPS.PGP keymap_defs.h: $(OPS) $(srcdir)/gen_defs $(srcdir)/gen_defs $(OPS) > keymap_defs.h reldate: echo 'const char *ReleaseDate = "'`date +%Y-%m-%d`'";' > $(srcdir)/reldate.h install-exec-local: if test -f $(bindir)/mutt.dotlock && test -f $(bindir)/mutt_dotlock ; then \ rm -f $(bindir)/mutt.dotlock ; \ ln -sf $(bindir)/mutt_dotlock $(bindir)/mutt.dotlock ; \ fi if test -f $(bindir)/mutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \ chgrp @DOTLOCK_GROUP@ $(bindir)/mutt_dotlock ; \ chmod @DOTLOCK_PERMISSION@ $(bindir)/mutt_dotlock ; \ fi install-data-local: $(srcdir)/mkinstalldirs $(sharedir) $(srcdir)/mkinstalldirs $(sysconfdir) -if [ -f $(sharedir)/Muttrc ] ; then \ mv $(sharedir)/Muttrc $(sysconfdir) ; \ elif [ -f $(sharedir)/../Muttrc ] ; then \ mv $(sharedir)/../Muttrc $(sysconfdir) ; \ elif [ ! -f $(sysconfdir)/Muttrc ] ; then \ $(INSTALL) -m 644 $(srcdir)/Muttrc $(sysconfdir) ; \ fi -if [ ! -f $(sysconfdir)/mime.types ]; then \ $(INSTALL) -m 644 $(srcdir)/mime.types $(sysconfdir); \ fi # Don't make this one ChangeLog - it's intended to be # used manually. changelog: rcs2log | cat - ChangeLog > ChangeLog.$$$$ && mv ChangeLog.$$$$ ChangeLog $(VISUAL) ChangeLog dist-hook: -for file in $(BUILT_SOURCES) ; do rm -f $(distdir)/$$file ; done -rm -f $(distdir)/config.h us-distdir: distdir dist-hook mv $(distdir) $(distdir)-us us-dist: us-distdir for file in $(distdir)-us/*.c $(distdir)-us/*.h ; do \ $(srcdir)/reap.pl < $$file > $$file.n && rm $$file && mv $$file.n $$file ; \ done for file in $(non_us_sources) ; do \ echo "/* This file is only available in the international mutt version */" \ > $(distdir)-us/$$file ; \ done echo "This version of mutt may be exported from the US."> $(distdir)-us/EXPORTABLE -chmod -R a+r $(distdir)-us GZIP=$(GZIP) $(TAR) chozf $(distdir)-us.tar.gz $(distdir)-us -rm -rf $(distdir)-us