From bca0df810d32f5b757398107aa64e433a0aceac6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 27 Jun 2014 21:16:23 -0400 Subject: [PATCH] lisp/Makefile tiny simplification * lisp/Makefile.in (compile-main, compile, compile-always): No need to explicitly pass variables to ourself in recursive calls. --- lisp/ChangeLog | 5 +++++ lisp/Makefile.in | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aab65df93b..a0f950e6af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-06-28 Glenn Morris + + * Makefile.in (compile-main, compile, compile-always): + No need to explicitly pass variables to ourself in recursive calls. + 2014-06-28 Stefan Monnier * files.el (minibuffer-with-setup-hook): Evaluate the first arg eagerly. diff --git a/lisp/Makefile.in b/lisp/Makefile.in index cb73265529..4624654c0d 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -308,7 +308,7 @@ compile-onefile: compile-first: $(COMPILE_FIRST) # In `compile-main' we could directly do -# ... | xargs $(MAKE) EMACS="$(EMACS)" +# ... | xargs $(MAKE) # and it works, but it generates a lot of messages like # make[2]: gnus/gnus-mlspl.elc is up to date. # so instead, we use "xargs echo" to split the list of file into manageable @@ -332,7 +332,7 @@ compile-main: leim semantic compile-clean echo "$${el}c"; \ done | xargs $(XARGS_LIMIT) echo) | \ while read chunk; do \ - $(MAKE) compile-targets EMACS="$(EMACS)" TARGETS="$$chunk"; \ + $(MAKE) compile-targets TARGETS="$$chunk"; \ done .PHONY: compile-clean @@ -363,17 +363,15 @@ semantic: # 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: $(LOADDEFS) autoloads compile-first - $(MAKE) compile-main EMACS="$(EMACS)" + $(MAKE) compile-main # Compile all Lisp files. This is like `compile' but compiles files # unconditionally. Some files don't actually get compiled because they # set the local variable no-byte-compile. compile-always: doit cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc - $(MAKE) compile EMACS="$(EMACS)" + $(MAKE) compile .PHONY: backup-compiled-files compile-after-backup -- 2.20.1