From 5252b59b2b3a7959160378cbd0ecb09d9a1da24b Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Thu, 2 Jan 2020 22:02:20 +0100 Subject: [PATCH] Better compile-clean and bootstrap-clean target definition --- lisp/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.39.5