]> git.eshelyaron.com Git - emacs.git/commitdiff
Better compile-clean and bootstrap-clean target definition
authorAndrea Corallo <akrl@sdf.org>
Thu, 2 Jan 2020 21:02:20 +0000 (22:02 +0100)
committerAndrea Corallo <akrl@sdf.org>
Thu, 2 Jan 2020 22:01:28 +0000 (23:01 +0100)
lisp/Makefile.in

index 5793b6474dc6ffe5574bd59dd65af141d777ae45..fdd39d5fd54b0abcf3ed7df9b5958378d2c620e3 100644 (file)
@@ -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: