]> git.eshelyaron.com Git - emacs.git/commitdiff
Make extraclean return tree to pristine state by deleting more
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Jun 2019 15:04:04 +0000 (17:04 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 20 Jun 2019 15:04:04 +0000 (17:04 +0200)
* src/Makefile.in (extraclean): Remove TAGS and config.in.

* Makefile.in (extraclean): Remove info, configure and
emacsver.texi in extraclean.
* admin/unidata/Makefile.in (extraclean): Make it depend on
distclean to remove .elc files.

* leim/Makefile.in (extraclean): Depend on bootstrap-clean to
remove generated .el files.

* lib/Makefile.in (extraclean): Added target to remove sys
directory and run distclean.

* lisp/Makefile.in (extraclean): Also remove loaddefs*.el~ files.

Makefile.in
admin/unidata/Makefile.in
leim/Makefile.in
lib/Makefile.in
lisp/Makefile.in
src/Makefile.in

index 21362a919630c126b864b97c55607b64a9cc8d62..5e23d72419ed11dcca6c49e215eba3c3fdebe023 100644 (file)
@@ -933,14 +933,16 @@ maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean)
 ### Note that we abuse this in some subdirectories (eg leim),
 ### to delete some generated files that are slow to rebuild.
 extraclean_dirs = ${NTDIR} lib-src src leim \
-  admin/charsets admin/grammars admin/unidata
+  admin/charsets admin/grammars admin/unidata lisp lib
 
 $(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean)))
 
 extraclean: $(extraclean_dirs:=_extraclean)
        ${top_maintainer_clean}
-       -rm -f config-tmp-*
-       -rm -f ./*~ \#*
+       -rm -f config-tmp-* aclocal.m4 configure
+       -rm -f ./*~ \#* etc/refcards/emacsver.tex doc/emacs/emacsver.texi
+       -rm -f info/*.info info/dir
+       -[ -d info ] && rmdir --ignore-fail-on-non-empty info
 
 # The src subdir knows how to do the right thing
 # even when the build directory and source dir are different.
index 31efba0227a8cce22b23dd09a30b7cef0bacaa0b..a522b0c3aa50622e14b3911e084147cc48b87c03 100644 (file)
@@ -116,6 +116,6 @@ maintainer-clean: distclean
 ## Do not remove these files, even in a bootstrap, because they rarely
 ## change and it slows down bootstrap (a tiny bit).
 ## Cf leim/ja-dic (which is much slower).
-extraclean:
+extraclean: distclean
        rm -f ${top_srcdir}/src/macuvs.h ${unidir}/charscript.el*
        rm -f ${unifiles} ${unidir}/charprop.el
index 4307d5008767af464d553638dd60ea811a4a5330..d5619d9c67b7cf58de9eb43e607218dd674e9833 100644 (file)
@@ -159,7 +159,7 @@ maintainer-clean: distclean bootstrap-clean
 
 ## We do not delete ja-dic, even in a bootstrap, because it rarely
 ## changes and is slow to regenerate.
-extraclean:
+extraclean: bootstrap-clean
        rm -rf ${leimdir}/ja-dic
 
 ### Makefile.in ends here
index ac32c7070f3c809503620e6f7a288f7f594553ec..12a1be705f6afbf12217669b13aa7b1aa7cc768b 100644 (file)
@@ -126,6 +126,9 @@ distclean bootstrap-clean: mostlyclean
        rm -fr $(DEPDIR)
 maintainer-clean: distclean
        rm -f TAGS gnulib.mk
+extraclean: distclean
+       -[ -d sys ] && rmdir --ignore-fail-on-non-empty sys
+
 .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
index 9bcd5a8824230353a8e9ab572f8a94f061761830..ee2c20917705984f0dfd8319e53499cbbcaf65da 100644 (file)
@@ -453,18 +453,22 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el
           --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \
           -f batch-update-autoloads $(CAL_DIR)
 
-.PHONY: bootstrap-clean distclean maintainer-clean
+.PHONY: bootstrap-clean distclean maintainer-clean extraclean
 
 bootstrap-clean:
        find $(lisp) -name '*.elc' $(FIND_DELETE)
        rm -f $(AUTOGENEL)
 
 distclean:
-       -rm -f ./Makefile $(lisp)/loaddefs.el~
+       -rm -f ./Makefile $(lisp)/loaddefs.el
 
 maintainer-clean: distclean bootstrap-clean
        rm -f TAGS
 
+extraclean: bootstrap-clean distclean
+       -for file in $(LOADDEFS); do rm -f $${file}~; done
+       -rm -f $(lisp)/loaddefs.el~
+
 .PHONY: check-declare
 
 check-declare:
index 02a1a2c4cf9529f8bfd6bdd2a05c933e0909f886..fd05a45df54b4d7e3cfa979e98c1488ea2a5dd3a 100644 (file)
@@ -723,7 +723,7 @@ maintainer-clean: distclean
 versionclean:
        -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) ../etc/DOC*
 extraclean: distclean
-       -rm -f ./*~ \#*
+       -rm -f ./*~ \#* TAGS config.in
 
 
 ETAGS = ../lib-src/etags${EXEEXT}