From: Andrea Corallo Date: Thu, 2 Jan 2020 21:02:20 +0000 (+0100) Subject: Better compile-clean and bootstrap-clean target definition X-Git-Tag: emacs-28.0.90~2727^2~853 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5252b59b2b3a7959160378cbd0ecb09d9a1da24b;p=emacs.git Better compile-clean and bootstrap-clean target definition --- diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 5793b6474dc..fdd39d5fd54 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -365,6 +365,8 @@ compile-clean: if test -f "$$el" || test ! -f "$${el}c"; then :; else \ echo rm "$${el}c"; \ rm "$${el}c"; \ + fi; \ + if test -f "$$el" || test ! -f "$${el}n"; then :; else \ echo rm "$${el}n"; \ rm "$${el}n"; \ fi; \ @@ -485,7 +487,7 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el .PHONY: bootstrap-clean distclean maintainer-clean extraclean bootstrap-clean: - find $(lisp) -name '*.elc' $(FIND_DELETE) + find $(lisp) -regex '.*\.elc\|.*\.eln' $(FIND_DELETE) rm -f $(AUTOGENEL) distclean: