]> git.eshelyaron.com Git - emacs.git/commitdiff
* Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Sep 2012 09:18:24 +0000 (02:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 23 Sep 2012 09:18:24 +0000 (02:18 -0700)
to avoid problems with recursion when using GNU make.

ChangeLog
Makefile.in

index 2b1b2f2915c061beab7e53bd975e8726bd4708d0..c0f40b92c90a9274096ef7d9c46a18d384e1dfb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,
+       to avoid problems with recursion when using GNU make.
+
 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Makefile.in (bootstrap): Simplify build procedure.
index 542c30bbab7e2d1499d7f4a99bc5c79ebcd10b0a..571013e32444988ef503f0d7c0cd8f7012d1df9a 100644 (file)
@@ -355,6 +355,10 @@ blessmail: Makefile src FRC
 # config.status overrides MAKEFILE_NAME with a bogus name when creating
 # src/epaths.h, so that 'make epaths-force' does not recursively invoke
 # config.status and overwrite config.status while executing it (Bug#11214).
+#
+# 'make bootstrap' overrides MAKEFILE_NAME to a nonexistent file but
+# then attempts to build that file.  This forces 'Makefile', 'lib/Makefile',
+# etc. to be built without running into similar recursion problems.
 MAKEFILE_NAME = Makefile
 $(MAKEFILE_NAME): config.status $(srcdir)/src/config.in \
           $(srcdir)/Makefile.in $(SUBDIR_MAKEFILES_IN)
@@ -895,7 +899,7 @@ dvi:
 #  * Do the actual build.
 bootstrap: bootstrap-clean FRC
        cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; }
-       $(MAKE) $(MFLAGS) Makefile
+       $(MAKE) $(MFLAGS) MAKEFILE_NAME=force-Makefile force-Makefile
        $(MAKE) $(MFLAGS) info all
 
 .PHONY: check-declare