changeset 93711:147f4f022b77

(LOADDEFS): Add mh-loaddefs.el. (AUTOGENEL): mh-loaddefs is in $LOADDEFS now. (compile, compile-always, recompile): Use $LOADDEFS. ($(lisp)/mh-e/mh-loaddefs.el): Simplify rule now that autoload-ensure-default-file provides a feature. (cal-autoloads): Remove.
author Glenn Morris <rgm@gnu.org>
date Sat, 05 Apr 2008 18:52:02 +0000
parents 07af23654bc8
children 59cfcdcb1474
files lisp/Makefile.in
diffstat 1 files changed, 6 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/Makefile.in	Sat Apr 05 18:51:12 2008 +0000
+++ b/lisp/Makefile.in	Sat Apr 05 18:52:02 2008 +0000
@@ -48,7 +48,9 @@
 
 # Automatically generated autoload files, apart from lisp/loaddefs.el.
 LOADDEFS = $(lisp)/calendar/cal-loaddefs.el \
-	$(lisp)/calendar/diary-loaddefs.el $(lisp)/calendar/hol-loaddefs.el
+	$(lisp)/calendar/diary-loaddefs.el \
+	$(lisp)/calendar/hol-loaddefs.el \
+	$(lisp)/mh-e/mh-loaddefs.el
 
 # Elisp files auto-generated.
 AUTOGENEL = loaddefs.el \
@@ -57,7 +59,6 @@
 	finder-inf.el \
 	subdirs.el \
 	eshell/esh-groups.el \
-	mh-e/mh-loaddefs.el
 
 # Files to compile before others during a bootstrap.  This is done to
 # speed up the bootstrap process.  The CC files are compiled first
@@ -162,7 +163,7 @@
 
 # `|| true' below prevents old Bash versions from getting confused
 # by an error.
-compile: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit
+compile: $(lisp)/subdirs.el $(LOADDEFS) doit
 	find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
 	wd=$(lisp); $(setwins);	\
 	els=`echo $$wins | tr ' \011' '\012\012' | \
@@ -179,7 +180,7 @@
 # unconditionally.  Some files don't actually get compiled because they
 # set the local variable no-byte-compile.
 
-compile-always: $(lisp)/subdirs.el mh-autoloads cal-autoloads doit
+compile-always: $(lisp)/subdirs.el $(LOADDEFS) doit
 	# `|| true' prevents old Bash versions from getting confused
 	# by an error.
 	find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1 || true; \
@@ -214,7 +215,7 @@
 # Recompile all Lisp files which are newer than their .elc files and compile
 # new ones.
 
-recompile: doit mh-autoloads cal-autoloads $(lisp)/progmodes/cc-mode.elc
+recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
 	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 
 # CC Mode uses a compile time macro system which causes a compile time
@@ -230,30 +231,12 @@
 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
 mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
 $(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el
-## The only non-standard part of this is the provide.
-## All these echos can be removed if mh-e.el changes to use
-## (load "mh-loaddefs" nil 'quiet).
-	echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
-	echo ";;" >> $@
-	echo ";;; Code:" >> $@
-	echo "" >> $@
-	echo "(provide 'mh-loaddefs)" >> $@
-	echo ";; Local Variables:" >> $@
-	echo ";; version-control: never" >> $@
-	echo ";; no-byte-compile: t" >> $@
-	echo ";; no-update-autoloads: t" >> $@
-	echo ";; End:" >> $@
-	echo ";;; mh-loaddefs.el ends here" >> $@
 	$(emacs) -l autoload \
 	   --eval "(setq generate-autoload-cookie \";;;###mh-autoload\")" \
 	   --eval "(setq generated-autoload-file \"$@\")" \
 	   --eval "(setq make-backup-files nil)" \
 	   -f batch-update-autoloads $(lisp)/mh-e
 
-cal-autoloads: $(lisp)/calendar/cal-loaddefs.el \
-	       $(lisp)/calendar/diary-loaddefs.el \
-	       $(lisp)/calendar/hol-loaddefs.el
-
 $(lisp)/calendar/cal-loaddefs.el: $(lisp)/calendar/*.el
 	$(emacs) -l autoload \
 	   --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \