aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-09-23 02:18:24 -0700
committerPaul Eggert2012-09-23 02:18:24 -0700
commitc462dda8c848d24cf84dd673b93d7ee8c8143b4e (patch)
tree3fab9ecf20eada71dc851fcef7cf72ce1fd3b07e
parentd07ff9db920196077333148f6db88525c8ba3151 (diff)
downloademacs-c462dda8c848d24cf84dd673b93d7ee8c8143b4e.tar.gz
emacs-c462dda8c848d24cf84dd673b93d7ee8c8143b4e.zip
* Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,
to avoid problems with recursion when using GNU make.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b1b2f2915c..c0f40b92c90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12012-09-23 Paul Eggert <eggert@cs.ucla.edu>
2
3 * Makefile.in (bootstrap): Set MAKEFILE_NAME when building Makefile,
4 to avoid problems with recursion when using GNU make.
5
12012-09-22 Paul Eggert <eggert@cs.ucla.edu> 62012-09-22 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * Makefile.in (bootstrap): Simplify build procedure. 8 * Makefile.in (bootstrap): Simplify build procedure.
diff --git a/Makefile.in b/Makefile.in
index 542c30bbab7..571013e3244 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -355,6 +355,10 @@ blessmail: Makefile src FRC
355# config.status overrides MAKEFILE_NAME with a bogus name when creating 355# config.status overrides MAKEFILE_NAME with a bogus name when creating
356# src/epaths.h, so that 'make epaths-force' does not recursively invoke 356# src/epaths.h, so that 'make epaths-force' does not recursively invoke
357# config.status and overwrite config.status while executing it (Bug#11214). 357# config.status and overwrite config.status while executing it (Bug#11214).
358#
359# 'make bootstrap' overrides MAKEFILE_NAME to a nonexistent file but
360# then attempts to build that file. This forces 'Makefile', 'lib/Makefile',
361# etc. to be built without running into similar recursion problems.
358MAKEFILE_NAME = Makefile 362MAKEFILE_NAME = Makefile
359$(MAKEFILE_NAME): config.status $(srcdir)/src/config.in \ 363$(MAKEFILE_NAME): config.status $(srcdir)/src/config.in \
360 $(srcdir)/Makefile.in $(SUBDIR_MAKEFILES_IN) 364 $(srcdir)/Makefile.in $(SUBDIR_MAKEFILES_IN)
@@ -895,7 +899,7 @@ dvi:
895# * Do the actual build. 899# * Do the actual build.
896bootstrap: bootstrap-clean FRC 900bootstrap: bootstrap-clean FRC
897 cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; } 901 cd $(srcdir) && { ./autogen.sh || autogen/copy_autogen; }
898 $(MAKE) $(MFLAGS) Makefile 902 $(MAKE) $(MFLAGS) MAKEFILE_NAME=force-Makefile force-Makefile
899 $(MAKE) $(MFLAGS) info all 903 $(MAKE) $(MFLAGS) info all
900 904
901.PHONY: check-declare 905.PHONY: check-declare