mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
Minimize blessmail-related cpp usage, with an eye to future removal.
* lib-src/Makefile.in: (BLESSMAIL_TARGET): New variable. (MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable. (blessmail): Always define this rule. (need-blessmail): New rule, split out from maybe-blessmail. (maybe-blessmail): Use BLESSMAIL_TARGET.
This commit is contained in:
parent
e49dca3dd4
commit
f6c0ee20ba
@ -1,3 +1,12 @@
|
||||
2010-05-06 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* Makefile.in: Minimize blessmail-related cpp usage.
|
||||
(BLESSMAIL_TARGET): New variable.
|
||||
(MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable.
|
||||
(blessmail): Always define this rule.
|
||||
(need-blessmail): New rule, split out from maybe-blessmail.
|
||||
(maybe-blessmail): Use BLESSMAIL_TARGET.
|
||||
|
||||
2010-05-04 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than
|
||||
|
@ -1,7 +1,6 @@
|
||||
# Makefile for lib-src subdirectory in GNU Emacs.
|
||||
# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004,
|
||||
# 2005, 2006, 2007, 2008, 2009, 2010
|
||||
# Free Software Foundation, Inc.
|
||||
# 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
|
||||
# This file is part of GNU Emacs.
|
||||
|
||||
@ -132,6 +131,9 @@ EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
|
||||
# If neither flag is set, blessmail is used.
|
||||
MOVE_FLAGS=
|
||||
|
||||
## May be reset below by cpp.
|
||||
BLESSMAIL_TARGET=
|
||||
|
||||
## -lkrb if HAVE_LIBKRB or -lkrb4 if HAVE_LIBKRB4
|
||||
KRB4LIB=@KRB4LIB@
|
||||
## -ldes if HAVE_LIBDES or -ldes425 if HAVE_LIBDES425
|
||||
@ -170,22 +172,14 @@ CPP_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) -DHAVE_CONFIG_H -I. -I../src
|
||||
#ifndef LIBS_SYSTEM
|
||||
#define LIBS_SYSTEM
|
||||
#endif
|
||||
LOADLIBES=LIBS_SYSTEM
|
||||
|
||||
#undef MOVEMAIL_NEEDS_BLESSING
|
||||
#ifndef MAIL_USE_FLOCK
|
||||
#ifndef MAIL_USE_LOCKF
|
||||
#define MOVEMAIL_NEEDS_BLESSING
|
||||
BLESSMAIL_TARGET = need-blessmail
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MOVEMAIL_NEEDS_BLESSING
|
||||
#define BLESSMAIL blessmail
|
||||
#else
|
||||
#define BLESSMAIL
|
||||
#endif
|
||||
|
||||
LOADLIBES=LIBS_SYSTEM
|
||||
|
||||
|
||||
.SUFFIXES: .m
|
||||
|
||||
@ -218,14 +212,14 @@ grep-changelog: $(srcdir)/grep-changelog
|
||||
vcdiff: $(srcdir)/vcdiff
|
||||
-cp -p $(srcdir)/vcdiff vcdiff
|
||||
|
||||
#ifdef MOVEMAIL_NEEDS_BLESSING
|
||||
/* Only used if we need blessmail, but no harm in always defining.
|
||||
This makes the actual blessmail executable. */
|
||||
blessmail:
|
||||
$(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el
|
||||
chmod +x blessmail
|
||||
#endif
|
||||
|
||||
maybe-blessmail: BLESSMAIL
|
||||
#ifdef MOVEMAIL_NEEDS_BLESSING
|
||||
/* This checks if we need to run blessmail. */
|
||||
need-blessmail: blessmail
|
||||
/* Don\'t charge ahead and do it! Let the installer decide.
|
||||
./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */
|
||||
@if [ `wc -l <blessmail` != 2 ] ; then \
|
||||
@ -235,7 +229,9 @@ maybe-blessmail: BLESSMAIL
|
||||
echo as root, to give movemail${EXEEXT} appropriate permissions.; \
|
||||
echo Do that after running make install.; \
|
||||
fi
|
||||
#endif
|
||||
|
||||
/* This is the target invoked by the top-level Makefile. */
|
||||
maybe-blessmail: $(BLESSMAIL_TARGET)
|
||||
|
||||
/* Install the internal utilities. Until they are installed, we can
|
||||
just run them directly from lib-src. */
|
||||
|
Loading…
Reference in New Issue
Block a user