summaryrefslogtreecommitdiff
path: root/lisp/Makefile.in
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-03-30 19:26:58 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2017-03-30 19:51:39 -0700
commit3a11b3e330e88a42386ac3a635330ebd9c610827 (patch)
tree25c9378f231f05417e826bf908171422167f4907 /lisp/Makefile.in
parente22d740c30ff5b3f7749c542b7dc0c454eb69f98 (diff)
downloademacs-3a11b3e330e88a42386ac3a635330ebd9c610827.tar.gz
Use find -delete if available
This shortens the ‘make’ output and should avoid some repetitive scanning of directories during a build. * configure.ac (FIND_DELETE): New var. * lisp/Makefile.in (compile-always, bootstrap-clean): * test/Makefile.in (clean, bootstrap-clean): Use it. * test/Makefile.in (ELCFILES, LOGSAVEFILES): Remove; no longer needed.
Diffstat (limited to 'lisp/Makefile.in')
-rw-r--r--lisp/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index cbe7718981e..185554ca63a 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -47,6 +47,9 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
+
+FIND_DELETE = @FIND_DELETE@
+
# You can specify a different executable on the make command line,
# e.g. "make EMACS=../src/emacs ...".
@@ -343,7 +346,7 @@ compile: $(LOADDEFS) autoloads compile-first
# unconditionally. Some files don't actually get compiled because they
# set the local variable no-byte-compile.
compile-always:
- cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc
+ find $(lisp) -name '*.elc' $(FIND_DELETE)
$(MAKE) compile
.PHONY: backup-compiled-files compile-after-backup
@@ -433,7 +436,8 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el
.PHONY: bootstrap-clean distclean maintainer-clean
bootstrap-clean:
- -cd $(lisp) && rm -f *.elc */*.elc */*/*.elc */*/*/*.elc $(AUTOGENEL)
+ find $(lisp) -name '*.elc' $(FIND_DELETE)
+ -cd $(lisp) && rm -f $(AUTOGENEL)
distclean:
-rm -f ./Makefile $(lisp)/loaddefs.el~