]> git.eshelyaron.com Git - emacs.git/commitdiff
Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-48
authorMiles Bader <miles@gnu.org>
Tue, 16 Sep 2003 02:40:49 +0000 (02:40 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 16 Sep 2003 02:40:49 +0000 (02:40 +0000)
Add loaddefs.el bootstrapping to lisp/makefile.w32-in

lisp/ChangeLog
lisp/makefile.w32-in

index 7cc8d7101be522c8e787672275b40cbf49ee21a2..08fda595153bff62abc4ff2f4c5277283b2a5194 100644 (file)
@@ -1,3 +1,10 @@
+2003-09-16  Miles Bader  <miles@gnu.ai.mit.edu>
+
+       From David Ponce <david.ponce@wanadoo.fr>:
+       * makefile.w32-in (DONTCOMPILE): Add loaddefs-boot.el.
+       (bootstrap-clean-CMD, bootstrap-clean-SH): Recreate loaddefs.el
+       from loaddefs-boot.el if necessary.
+
 2003-09-15  Zoltan Kemenczy <kemenczy@rogers.com>
 
        * progmodes/gud.el (gud-find-class): Make jdb work again since
index e7f020e33b7eb9dd2946a31d9acecb3930e81373..515c9f3bb727c2e18c4ebe2151e8372b4a2b2f77 100644 (file)
@@ -87,6 +87,7 @@ DONTCOMPILE = \
        $(lisp)/language/utf-8-lang.el \
        $(lisp)/language/georgian.el \
        $(lisp)/loaddefs.el \
+       $(lisp)/loaddefs-boot.el \
        $(lisp)/loadup.el \
        $(lisp)/mail/blessmail.el \
        $(lisp)/patcomp.el \
@@ -352,22 +353,33 @@ compile-after-backup: backup-compiled-files compile-always
 recompile: doit
        $(emacs) -f batch-byte-recompile-directory $(lisp)
 
-# Prepare a bootstrap in the lisp subdirectory.  Build loaddefs.el,
-# because it's not sure it's up-to-date, and if it's not, that might
-# lead to errors during the bootstrap because something fails to
-# autoload as expected.  Remove compiled Lisp files so that
-# bootstrap-emacs will be built from sources only.
+# Prepare a bootstrap in the lisp subdirectory.
+#
+# Build loaddefs.el, because it's not sure it's up-to-date, and if it's not,
+# that might lead to errors during the bootstrap because something fails to
+# autoload as expected.  However, if there is no emacs binary, then we can't
+# build autoloads yet, so just make sure there's some loaddefs.el file, as
+# it's necessary for generating the binary (because loaddefs.el is an
+# automatically generated file, we don't want to store it in the source
+# repository).
+#
+# Remove compiled Lisp files so that bootstrap-emacs will be built from
+# sources only.
 
 # Need separate version for sh and native cmd.exe
 bootstrap-clean: bootstrap-clean-$(SHELLTYPE) loaddefs.el
 
 bootstrap-clean-CMD:
 #      if exist $(EMACS) $(MAKE) $(MFLAGS) autoloads
+       if not exist $(lisp)\loaddefs.el cp $(lisp)/loaddefs-boot.el $(lisp)/loaddefs.el
        -for %f in (. $(WINS)) do for %g in (%f\*.elc) do @$(DEL) %g
 
 bootstrap-clean-SH:
 #      if test -f $(EMACS); then $(MAKE) $(MFLAGS) autoloads; fi
 #      -rm -f $(lisp)/*.elc $(lisp)/*/*.elc
+       if ! test -r $(lisp)/loaddefs.el; then \
+         cp $(lisp)/loaddefs-boot.el $(lisp)/loaddefs.el; \
+       fi
        -for dir in . $(WINS); do rm -f $$dir/*.elc; done
 
 # Generate/update files for the bootstrap process.