diff options
| author | Glenn Morris | 2010-05-06 01:03:27 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-06 01:03:27 -0700 |
| commit | f6c0ee20bae45d1e0ec090b68a9edd2161c1e5fa (patch) | |
| tree | f9649adaca6c768af4f2330d614c2c3647a79a8e | |
| parent | e49dca3dd47ecfbf821196272fc2b5906a92c2d6 (diff) | |
| download | emacs-f6c0ee20bae45d1e0ec090b68a9edd2161c1e5fa.tar.gz emacs-f6c0ee20bae45d1e0ec090b68a9edd2161c1e5fa.zip | |
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.
| -rw-r--r-- | lib-src/ChangeLog | 9 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 30 |
2 files changed, 22 insertions, 17 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 37d2dcae3cd..1424f0dc5f7 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-05-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in: Minimize blessmail-related cpp usage. | ||
| 4 | (BLESSMAIL_TARGET): New variable. | ||
| 5 | (MOVEMAIL_NEEDS_BLESSING): Remove, replace by above variable. | ||
| 6 | (blessmail): Always define this rule. | ||
| 7 | (need-blessmail): New rule, split out from maybe-blessmail. | ||
| 8 | (maybe-blessmail): Use BLESSMAIL_TARGET. | ||
| 9 | |||
| 1 | 2010-05-04 Glenn Morris <rgm@gnu.org> | 10 | 2010-05-04 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than | 12 | * Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@ rather than |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 634ac8bcb44..a97682ae763 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | # Makefile for lib-src subdirectory in GNU Emacs. | 1 | # Makefile for lib-src subdirectory in GNU Emacs. |
| 2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, | 2 | # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2001, 2002, 2003, 2004, |
| 3 | # 2005, 2006, 2007, 2008, 2009, 2010 | 3 | # 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
| 4 | # Free Software Foundation, Inc. | ||
| 5 | 4 | ||
| 6 | # This file is part of GNU Emacs. | 5 | # This file is part of GNU Emacs. |
| 7 | 6 | ||
| @@ -132,6 +131,9 @@ EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | |||
| 132 | # If neither flag is set, blessmail is used. | 131 | # If neither flag is set, blessmail is used. |
| 133 | MOVE_FLAGS= | 132 | MOVE_FLAGS= |
| 134 | 133 | ||
| 134 | ## May be reset below by cpp. | ||
| 135 | BLESSMAIL_TARGET= | ||
| 136 | |||
| 135 | ## -lkrb if HAVE_LIBKRB or -lkrb4 if HAVE_LIBKRB4 | 137 | ## -lkrb if HAVE_LIBKRB or -lkrb4 if HAVE_LIBKRB4 |
| 136 | KRB4LIB=@KRB4LIB@ | 138 | KRB4LIB=@KRB4LIB@ |
| 137 | ## -ldes if HAVE_LIBDES or -ldes425 if HAVE_LIBDES425 | 139 | ## -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 | |||
| 170 | #ifndef LIBS_SYSTEM | 172 | #ifndef LIBS_SYSTEM |
| 171 | #define LIBS_SYSTEM | 173 | #define LIBS_SYSTEM |
| 172 | #endif | 174 | #endif |
| 175 | LOADLIBES=LIBS_SYSTEM | ||
| 173 | 176 | ||
| 174 | #undef MOVEMAIL_NEEDS_BLESSING | ||
| 175 | #ifndef MAIL_USE_FLOCK | 177 | #ifndef MAIL_USE_FLOCK |
| 176 | #ifndef MAIL_USE_LOCKF | 178 | #ifndef MAIL_USE_LOCKF |
| 177 | #define MOVEMAIL_NEEDS_BLESSING | 179 | BLESSMAIL_TARGET = need-blessmail |
| 178 | #endif | 180 | #endif |
| 179 | #endif | 181 | #endif |
| 180 | 182 | ||
| 181 | #ifdef MOVEMAIL_NEEDS_BLESSING | ||
| 182 | #define BLESSMAIL blessmail | ||
| 183 | #else | ||
| 184 | #define BLESSMAIL | ||
| 185 | #endif | ||
| 186 | |||
| 187 | LOADLIBES=LIBS_SYSTEM | ||
| 188 | |||
| 189 | 183 | ||
| 190 | .SUFFIXES: .m | 184 | .SUFFIXES: .m |
| 191 | 185 | ||
| @@ -218,14 +212,14 @@ grep-changelog: $(srcdir)/grep-changelog | |||
| 218 | vcdiff: $(srcdir)/vcdiff | 212 | vcdiff: $(srcdir)/vcdiff |
| 219 | -cp -p $(srcdir)/vcdiff vcdiff | 213 | -cp -p $(srcdir)/vcdiff vcdiff |
| 220 | 214 | ||
| 221 | #ifdef MOVEMAIL_NEEDS_BLESSING | 215 | /* Only used if we need blessmail, but no harm in always defining. |
| 216 | This makes the actual blessmail executable. */ | ||
| 222 | blessmail: | 217 | blessmail: |
| 223 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el | 218 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el |
| 224 | chmod +x blessmail | 219 | chmod +x blessmail |
| 225 | #endif | ||
| 226 | 220 | ||
| 227 | maybe-blessmail: BLESSMAIL | 221 | /* This checks if we need to run blessmail. */ |
| 228 | #ifdef MOVEMAIL_NEEDS_BLESSING | 222 | need-blessmail: blessmail |
| 229 | /* Don\'t charge ahead and do it! Let the installer decide. | 223 | /* Don\'t charge ahead and do it! Let the installer decide. |
| 230 | ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */ | 224 | ./blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT} */ |
| 231 | @if [ `wc -l <blessmail` != 2 ] ; then \ | 225 | @if [ `wc -l <blessmail` != 2 ] ; then \ |
| @@ -235,7 +229,9 @@ maybe-blessmail: BLESSMAIL | |||
| 235 | echo as root, to give movemail${EXEEXT} appropriate permissions.; \ | 229 | echo as root, to give movemail${EXEEXT} appropriate permissions.; \ |
| 236 | echo Do that after running make install.; \ | 230 | echo Do that after running make install.; \ |
| 237 | fi | 231 | fi |
| 238 | #endif | 232 | |
| 233 | /* This is the target invoked by the top-level Makefile. */ | ||
| 234 | maybe-blessmail: $(BLESSMAIL_TARGET) | ||
| 239 | 235 | ||
| 240 | /* Install the internal utilities. Until they are installed, we can | 236 | /* Install the internal utilities. Until they are installed, we can |
| 241 | just run them directly from lib-src. */ | 237 | just run them directly from lib-src. */ |