changeset 6978:8cc5f63e8907

(blessmail): New target. ${archlibdir}: Use blessmail when installing movemail.
author Karl Heuer <kwzh@gnu.org>
date Wed, 20 Apr 1994 05:32:33 +0000
parents 6081a7b2a06f
children 3086be8e7683
files lib-src/Makefile.in
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Wed Apr 20 05:22:51 1994 +0000
+++ b/lib-src/Makefile.in	Wed Apr 20 05:32:33 1994 +0000
@@ -32,6 +32,19 @@
 #define LIBS_MACHINE
 #endif
 
+#undef MOVEMAIL_NEEDS_BLESSING
+#ifndef MAIL_USE_FLOCK
+#ifndef MAIL_USE_LOCKF
+#define MOVEMAIL_NEEDS_BLESSING
+#endif
+#endif
+
+#ifdef MOVEMAIL_NEEDS_BLESSING
+#define BLESSMAIL blessmail
+#else
+#define BLESSMAIL
+#endif
+
 /* Avoid trouble on systems where the `SHELL' variable might be
    inherited from the environment.  */
 SHELL = /bin/sh
@@ -139,9 +152,15 @@
 
 all: ${UTILITIES} ${INSTALLABLES}
 
+#ifdef MOVEMAIL_NEEDS_BLESSING
+blessmail: ../src/temacs
+	../src/temacs -batch -l blessmail.el
+	chmod +x blessmail
+#endif
+
 /* Install the internal utilities.  Until they are installed, we can
    just run them directly from lib-src.  */
-${archlibdir}: all
+${archlibdir}: all BLESSMAIL
 	@echo
 	@echo "Installing utilities run internally by Emacs."
 	./make-path ${archlibdir}
@@ -153,6 +172,9 @@
 	    (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \
 	  done ; \
 	fi
+#ifdef MOVEMAIL_NEEDS_BLESSING
+	./blessmail ${archlibdir}/movemail
+#endif
 
 /* We don't need to install `wakeup' explicitly, because it will be
    copied when this whole directory is copied.  */