# HG changeset patch # User Glenn Morris # Date 1212888181 0 # Node ID 70d0398a5c78c65da5948f917cb5cc91bc7041c6 # Parent 2c12b44a3dfcc30ba8e97dee86e2ef59b33b879f (compile, compile-always, bootstrap-prepare): Explictly pass EMACS to sub-makes that use it, for non-GNU makes. diff -r 2c12b44a3dfc -r 70d0398a5c78 lisp/Makefile.in --- a/lisp/Makefile.in Sat Jun 07 13:52:12 2008 +0000 +++ b/lisp/Makefile.in Sun Jun 08 01:23:01 2008 +0000 @@ -1256,9 +1256,11 @@ # date. Some .el files don't get compiled because they set the # local variable no-byte-compile. # Calling make recursively because suffix rule cannot have prerequisites. +# Explicitly pass EMACS (sometimes ../src/bootstrap-emacs) to those +# sub-makes that run rules that use it, for the sake of some non-GNU makes. compile: $(emacs-deps) $(LOADDEFS) autoloads compile-first - $(MAKE) $(MFLAGS) compile-main - $(MAKE) $(MFLAGS) compile-last + $(MAKE) $(MFLAGS) compile-main EMACS=$(EMACS) + $(MAKE) $(MFLAGS) compile-last EMACS=$(EMACS) ## Doing this causes make install to dump another emacs. # $(MAKE) $(MFLAGS) update-elclist @@ -1268,7 +1270,7 @@ # set the local variable no-byte-compile. compile-always: doit cd $(lisp); rm -f *.elc */*.elc - $(MAKE) $(MFLAGS) compile + $(MAKE) $(MFLAGS) compile EMACS=$(EMACS) ## In case any files are missing from ELCFILES. compile-last: @@ -1395,7 +1397,7 @@ bootstrap-prepare: if test -x $(EMACS); then \ - $(MAKE) $(MFLAGS) autoloads; \ + $(MAKE) $(MFLAGS) autoloads EMACS=$(EMACS); \ fi autogen-clean: