diff options
| author | Lars Ingebrigtsen | 2019-06-20 17:04:04 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-20 17:04:04 +0200 |
| commit | de4e1bddb1c4823af4d04f0bff5b4a0217e9701d (patch) | |
| tree | 856433079bfe755b0f026c0c2744522414f3b0c5 | |
| parent | 756c48b33fc501003fb46598ed44c8a701c7a4df (diff) | |
| download | emacs-de4e1bddb1c4823af4d04f0bff5b4a0217e9701d.tar.gz emacs-de4e1bddb1c4823af4d04f0bff5b4a0217e9701d.zip | |
Make extraclean return tree to pristine state by deleting more
* 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.
| -rw-r--r-- | Makefile.in | 8 | ||||
| -rw-r--r-- | admin/unidata/Makefile.in | 2 | ||||
| -rw-r--r-- | leim/Makefile.in | 2 | ||||
| -rw-r--r-- | lib/Makefile.in | 3 | ||||
| -rw-r--r-- | lisp/Makefile.in | 8 | ||||
| -rw-r--r-- | src/Makefile.in | 2 |
6 files changed, 17 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index 21362a91963..5e23d72419e 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -933,14 +933,16 @@ maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) | |||
| 933 | ### Note that we abuse this in some subdirectories (eg leim), | 933 | ### Note that we abuse this in some subdirectories (eg leim), |
| 934 | ### to delete some generated files that are slow to rebuild. | 934 | ### to delete some generated files that are slow to rebuild. |
| 935 | extraclean_dirs = ${NTDIR} lib-src src leim \ | 935 | extraclean_dirs = ${NTDIR} lib-src src leim \ |
| 936 | admin/charsets admin/grammars admin/unidata | 936 | admin/charsets admin/grammars admin/unidata lisp lib |
| 937 | 937 | ||
| 938 | $(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean))) | 938 | $(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean))) |
| 939 | 939 | ||
| 940 | extraclean: $(extraclean_dirs:=_extraclean) | 940 | extraclean: $(extraclean_dirs:=_extraclean) |
| 941 | ${top_maintainer_clean} | 941 | ${top_maintainer_clean} |
| 942 | -rm -f config-tmp-* | 942 | -rm -f config-tmp-* aclocal.m4 configure |
| 943 | -rm -f ./*~ \#* | 943 | -rm -f ./*~ \#* etc/refcards/emacsver.tex doc/emacs/emacsver.texi |
| 944 | -rm -f info/*.info info/dir | ||
| 945 | -[ -d info ] && rmdir --ignore-fail-on-non-empty info | ||
| 944 | 946 | ||
| 945 | # The src subdir knows how to do the right thing | 947 | # The src subdir knows how to do the right thing |
| 946 | # even when the build directory and source dir are different. | 948 | # even when the build directory and source dir are different. |
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index 31efba0227a..a522b0c3aa5 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in | |||
| @@ -116,6 +116,6 @@ maintainer-clean: distclean | |||
| 116 | ## Do not remove these files, even in a bootstrap, because they rarely | 116 | ## Do not remove these files, even in a bootstrap, because they rarely |
| 117 | ## change and it slows down bootstrap (a tiny bit). | 117 | ## change and it slows down bootstrap (a tiny bit). |
| 118 | ## Cf leim/ja-dic (which is much slower). | 118 | ## Cf leim/ja-dic (which is much slower). |
| 119 | extraclean: | 119 | extraclean: distclean |
| 120 | rm -f ${top_srcdir}/src/macuvs.h ${unidir}/charscript.el* | 120 | rm -f ${top_srcdir}/src/macuvs.h ${unidir}/charscript.el* |
| 121 | rm -f ${unifiles} ${unidir}/charprop.el | 121 | rm -f ${unifiles} ${unidir}/charprop.el |
diff --git a/leim/Makefile.in b/leim/Makefile.in index 4307d500876..d5619d9c67b 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in | |||
| @@ -159,7 +159,7 @@ maintainer-clean: distclean bootstrap-clean | |||
| 159 | 159 | ||
| 160 | ## We do not delete ja-dic, even in a bootstrap, because it rarely | 160 | ## We do not delete ja-dic, even in a bootstrap, because it rarely |
| 161 | ## changes and is slow to regenerate. | 161 | ## changes and is slow to regenerate. |
| 162 | extraclean: | 162 | extraclean: bootstrap-clean |
| 163 | rm -rf ${leimdir}/ja-dic | 163 | rm -rf ${leimdir}/ja-dic |
| 164 | 164 | ||
| 165 | ### Makefile.in ends here | 165 | ### Makefile.in ends here |
diff --git a/lib/Makefile.in b/lib/Makefile.in index ac32c7070f3..12a1be705f6 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in | |||
| @@ -126,6 +126,9 @@ distclean bootstrap-clean: mostlyclean | |||
| 126 | rm -fr $(DEPDIR) | 126 | rm -fr $(DEPDIR) |
| 127 | maintainer-clean: distclean | 127 | maintainer-clean: distclean |
| 128 | rm -f TAGS gnulib.mk | 128 | rm -f TAGS gnulib.mk |
| 129 | extraclean: distclean | ||
| 130 | -[ -d sys ] && rmdir --ignore-fail-on-non-empty sys | ||
| 131 | |||
| 129 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 132 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 130 | 133 | ||
| 131 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | 134 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 9bcd5a88242..ee2c2091770 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -453,18 +453,22 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el | |||
| 453 | --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \ | 453 | --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \ |
| 454 | -f batch-update-autoloads $(CAL_DIR) | 454 | -f batch-update-autoloads $(CAL_DIR) |
| 455 | 455 | ||
| 456 | .PHONY: bootstrap-clean distclean maintainer-clean | 456 | .PHONY: bootstrap-clean distclean maintainer-clean extraclean |
| 457 | 457 | ||
| 458 | bootstrap-clean: | 458 | bootstrap-clean: |
| 459 | find $(lisp) -name '*.elc' $(FIND_DELETE) | 459 | find $(lisp) -name '*.elc' $(FIND_DELETE) |
| 460 | rm -f $(AUTOGENEL) | 460 | rm -f $(AUTOGENEL) |
| 461 | 461 | ||
| 462 | distclean: | 462 | distclean: |
| 463 | -rm -f ./Makefile $(lisp)/loaddefs.el~ | 463 | -rm -f ./Makefile $(lisp)/loaddefs.el |
| 464 | 464 | ||
| 465 | maintainer-clean: distclean bootstrap-clean | 465 | maintainer-clean: distclean bootstrap-clean |
| 466 | rm -f TAGS | 466 | rm -f TAGS |
| 467 | 467 | ||
| 468 | extraclean: bootstrap-clean distclean | ||
| 469 | -for file in $(LOADDEFS); do rm -f $${file}~; done | ||
| 470 | -rm -f $(lisp)/loaddefs.el~ | ||
| 471 | |||
| 468 | .PHONY: check-declare | 472 | .PHONY: check-declare |
| 469 | 473 | ||
| 470 | check-declare: | 474 | check-declare: |
diff --git a/src/Makefile.in b/src/Makefile.in index 02a1a2c4cf9..fd05a45df54 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -723,7 +723,7 @@ maintainer-clean: distclean | |||
| 723 | versionclean: | 723 | versionclean: |
| 724 | -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) ../etc/DOC* | 724 | -rm -f emacs$(EXEEXT) emacs-*.*.*[0-9]$(EXEEXT) ../etc/DOC* |
| 725 | extraclean: distclean | 725 | extraclean: distclean |
| 726 | -rm -f ./*~ \#* | 726 | -rm -f ./*~ \#* TAGS config.in |
| 727 | 727 | ||
| 728 | 728 | ||
| 729 | ETAGS = ../lib-src/etags${EXEEXT} | 729 | ETAGS = ../lib-src/etags${EXEEXT} |