diff options
| author | Glenn Morris | 2021-05-09 18:14:12 -0700 |
|---|---|---|
| committer | Glenn Morris | 2021-05-09 18:14:12 -0700 |
| commit | 305e4807a42075dca2447c82499cbc2584700fe2 (patch) | |
| tree | ba86ac9a9e1af42b1eec23bba15b5463403d7969 | |
| parent | 25c775b4e964aaa2cbf17997c0479dfc2ecf33e2 (diff) | |
| download | emacs-305e4807a42075dca2447c82499cbc2584700fe2.tar.gz emacs-305e4807a42075dca2447c82499cbc2584700fe2.zip | |
Base the "extraclean" Make rule on "maintainer-clean"
* Makefile.in (FIND_DELETE): New, set by configure.
(extraclean_dirs): Remove.
(extraclean): Make it just a small variation on maintainer-clean.
* admin/charsets/Makefile.in (extraclean):
* admin/grammars/Makefile.in (extraclean):
* admin/unidata/Makefile.in (extraclean):
* leim/Makefile.in (extraclean):
* lib-src/Makefile.in (extraclean):
* lisp/Makefile.in (extraclean):
* lwlib/Makefile.in (extraclean):
* nt/Makefile.in (extraclean):
* src/Makefile.in (extraclean): Remove target.
* lib/Makefile.in (extraclean): Merge into maintainer-clean.
| -rw-r--r-- | Makefile.in | 19 | ||||
| -rw-r--r-- | admin/charsets/Makefile.in | 3 | ||||
| -rw-r--r-- | admin/grammars/Makefile.in | 3 | ||||
| -rw-r--r-- | admin/unidata/Makefile.in | 3 | ||||
| -rw-r--r-- | leim/Makefile.in | 4 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 4 | ||||
| -rw-r--r-- | lib/Makefile.in | 1 | ||||
| -rw-r--r-- | lisp/Makefile.in | 8 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 3 | ||||
| -rw-r--r-- | lwlib/Makefile.in | 4 | ||||
| -rw-r--r-- | nt/Makefile.in | 5 | ||||
| -rw-r--r-- | src/Makefile.in | 5 |
12 files changed, 21 insertions, 41 deletions
diff --git a/Makefile.in b/Makefile.in index 8d52cb58575..6a5513124f6 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -96,6 +96,8 @@ NTDIR=@NTDIR@ | |||
| 96 | top_builddir = @top_builddir@ | 96 | top_builddir = @top_builddir@ |
| 97 | -include ${top_builddir}/src/verbose.mk | 97 | -include ${top_builddir}/src/verbose.mk |
| 98 | 98 | ||
| 99 | FIND_DELETE = @FIND_DELETE@ | ||
| 100 | |||
| 99 | HAVE_NATIVE_COMP = @HAVE_NATIVE_COMP@ | 101 | HAVE_NATIVE_COMP = @HAVE_NATIVE_COMP@ |
| 100 | 102 | ||
| 101 | # ==================== Where To Install Things ==================== | 103 | # ==================== Where To Install Things ==================== |
| @@ -932,19 +934,14 @@ maintainer-clean: bootstrap-clean $(maintainer_clean_dirs:=_maintainer-clean) | |||
| 932 | ### says GCC supports it, and that's where the configuration part of | 934 | ### says GCC supports it, and that's where the configuration part of |
| 933 | ### the coding standards seem to come from. It's like distclean, but | 935 | ### the coding standards seem to come from. It's like distclean, but |
| 934 | ### it deletes backup and autosave files too. | 936 | ### it deletes backup and autosave files too. |
| 935 | ### Note that we abuse this in some subdirectories (eg leim), | 937 | extraclean: maintainer-clean |
| 936 | ### to delete some generated files that are slow to rebuild. | 938 | -rm -f config-tmp-* aclocal.m4 configure src/config.in |
| 937 | extraclean_dirs = ${NTDIR} lib-src src leim \ | 939 | -rm -f etc/refcards/emacsver.tex doc/emacs/emacsver.texi |
| 938 | admin/charsets admin/grammars admin/unidata lisp lib lwlib | ||
| 939 | |||
| 940 | $(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean))) | ||
| 941 | |||
| 942 | extraclean: $(extraclean_dirs:=_extraclean) | ||
| 943 | ${top_maintainer_clean} | ||
| 944 | -rm -f config-tmp-* aclocal.m4 configure | ||
| 945 | -rm -f ./*~ \#* etc/refcards/emacsver.tex doc/emacs/emacsver.texi | ||
| 946 | -rm -f info/*.info info/dir | 940 | -rm -f info/*.info info/dir |
| 947 | -rmdir info 2>/dev/null | 941 | -rmdir info 2>/dev/null |
| 942 | -[ "${srcdir}" = "." ] || \ | ||
| 943 | find ${srcdir} '(' -name '*~' -o -name '#*' ')' ${FIND_DELETE} | ||
| 944 | -find . '(' -name '*~' -o -name '#*' ')' ${FIND_DELETE} | ||
| 948 | 945 | ||
| 949 | # The src subdir knows how to do the right thing | 946 | # The src subdir knows how to do the right thing |
| 950 | # even when the build directory and source dir are different. | 947 | # even when the build directory and source dir are different. |
diff --git a/admin/charsets/Makefile.in b/admin/charsets/Makefile.in index 00424843bc4..f043077e318 100644 --- a/admin/charsets/Makefile.in +++ b/admin/charsets/Makefile.in | |||
| @@ -297,7 +297,7 @@ ${charsetdir}/%.map: ${GLIBC_CHARMAPS}/%.gz ${mapconv} ${compact} | |||
| 297 | ${AM_V_GEN}${run_mapconv} $< '/^<.*[ ]\/x/' GLIBC-1 ${compact} > $@ | 297 | ${AM_V_GEN}${run_mapconv} $< '/^<.*[ ]\/x/' GLIBC-1 ${compact} > $@ |
| 298 | 298 | ||
| 299 | 299 | ||
| 300 | .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean gen-clean | 300 | .PHONY: clean bootstrap-clean distclean maintainer-clean gen-clean |
| 301 | 301 | ||
| 302 | clean: | 302 | clean: |
| 303 | 303 | ||
| @@ -312,4 +312,3 @@ gen-clean: | |||
| 312 | 312 | ||
| 313 | maintainer-clean: gen-clean distclean | 313 | maintainer-clean: gen-clean distclean |
| 314 | 314 | ||
| 315 | extraclean: maintainer-clean | ||
diff --git a/admin/grammars/Makefile.in b/admin/grammars/Makefile.in index 4172411e034..aaf95c08973 100644 --- a/admin/grammars/Makefile.in +++ b/admin/grammars/Makefile.in | |||
| @@ -95,7 +95,7 @@ ${cedetdir}/srecode/srt-wy.el: ${srcdir}/srecode-template.wy ${grammar_wisent} | |||
| 95 | $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@" | 95 | $(AM_V_GEN)[ ! -f "$@" ] || chmod +w "$@" |
| 96 | $(AM_V_at)${make_wisent} -o "$@" $< | 96 | $(AM_V_at)${make_wisent} -o "$@" $< |
| 97 | 97 | ||
| 98 | .PHONY: distclean bootstrap-clean maintainer-clean extraclean gen-clean | 98 | .PHONY: distclean bootstrap-clean maintainer-clean gen-clean |
| 99 | 99 | ||
| 100 | distclean: | 100 | distclean: |
| 101 | rm -f Makefile | 101 | rm -f Makefile |
| @@ -108,7 +108,6 @@ gen-clean: | |||
| 108 | 108 | ||
| 109 | maintainer-clean: gen-clean distclean | 109 | maintainer-clean: gen-clean distclean |
| 110 | 110 | ||
| 111 | extraclean: maintainer-clean | ||
| 112 | 111 | ||
| 113 | 112 | ||
| 114 | # Makefile.in ends here | 113 | # Makefile.in ends here |
diff --git a/admin/unidata/Makefile.in b/admin/unidata/Makefile.in index b7a927d1919..357b8126783 100644 --- a/admin/unidata/Makefile.in +++ b/admin/unidata/Makefile.in | |||
| @@ -85,7 +85,7 @@ ${unidir}/charscript.el: ${srcdir}/Blocks.txt ${blocks} | |||
| 85 | $(AM_V_GEN)$(AWK) -f ${blocks} < $< > $@ | 85 | $(AM_V_GEN)$(AWK) -f ${blocks} < $< > $@ |
| 86 | 86 | ||
| 87 | 87 | ||
| 88 | .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean gen-clean | 88 | .PHONY: clean bootstrap-clean distclean maintainer-clean gen-clean |
| 89 | 89 | ||
| 90 | clean: | 90 | clean: |
| 91 | rm -f ${srcdir}/*.elc unidata.txt | 91 | rm -f ${srcdir}/*.elc unidata.txt |
| @@ -107,4 +107,3 @@ gen-clean: | |||
| 107 | 107 | ||
| 108 | maintainer-clean: gen-clean distclean | 108 | maintainer-clean: gen-clean distclean |
| 109 | 109 | ||
| 110 | extraclean: maintainer-clean | ||
diff --git a/leim/Makefile.in b/leim/Makefile.in index 2646abcfff9..ce1029abcfa 100644 --- a/leim/Makefile.in +++ b/leim/Makefile.in | |||
| @@ -137,7 +137,7 @@ ${srcdir}/../lisp/language/pinyin.el: ${srcdir}/MISC-DIC/pinyin.map | |||
| 137 | $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv -f pinyin-convert $< $@ | 137 | $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv -f pinyin-convert $< $@ |
| 138 | 138 | ||
| 139 | 139 | ||
| 140 | .PHONY: bootstrap-clean distclean maintainer-clean extraclean gen-clean | 140 | .PHONY: bootstrap-clean distclean maintainer-clean gen-clean |
| 141 | 141 | ||
| 142 | ## Perhaps this should run gen-clean. | 142 | ## Perhaps this should run gen-clean. |
| 143 | bootstrap-clean: | 143 | bootstrap-clean: |
| @@ -154,6 +154,4 @@ gen-clean: | |||
| 154 | rm -f ${TIT_MISC} ${leimdir}/leim-list.el | 154 | rm -f ${TIT_MISC} ${leimdir}/leim-list.el |
| 155 | rm -rf ${leimdir}/ja-dic | 155 | rm -rf ${leimdir}/ja-dic |
| 156 | 156 | ||
| 157 | extraclean: maintainer-clean | ||
| 158 | |||
| 159 | ### Makefile.in ends here | 157 | ### Makefile.in ends here |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index 923d0cf5e72..1beafafe0c1 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -315,7 +315,7 @@ $(DESTDIR)${archlibdir}: all | |||
| 315 | fi | 315 | fi |
| 316 | 316 | ||
| 317 | .PHONY: install uninstall mostlyclean clean distclean maintainer-clean | 317 | .PHONY: install uninstall mostlyclean clean distclean maintainer-clean |
| 318 | .PHONY: bootstrap-clean extraclean check tags | 318 | .PHONY: bootstrap-clean check tags |
| 319 | 319 | ||
| 320 | install: $(DESTDIR)${archlibdir} | 320 | install: $(DESTDIR)${archlibdir} |
| 321 | @echo | 321 | @echo |
| @@ -350,8 +350,6 @@ distclean: clean | |||
| 350 | 350 | ||
| 351 | bootstrap-clean maintainer-clean: distclean | 351 | bootstrap-clean maintainer-clean: distclean |
| 352 | 352 | ||
| 353 | extraclean: maintainer-clean | ||
| 354 | rm -f ./*~ \#* | ||
| 355 | 353 | ||
| 356 | ## Test the contents of the directory. | 354 | ## Test the contents of the directory. |
| 357 | check: | 355 | check: |
diff --git a/lib/Makefile.in b/lib/Makefile.in index 68a0247e9cb..825b3131d59 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in | |||
| @@ -113,7 +113,6 @@ distclean bootstrap-clean: mostlyclean | |||
| 113 | rm -fr $(DEPDIR) | 113 | rm -fr $(DEPDIR) |
| 114 | maintainer-clean: distclean | 114 | maintainer-clean: distclean |
| 115 | rm -f TAGS gnulib.mk | 115 | rm -f TAGS gnulib.mk |
| 116 | extraclean: distclean | ||
| 117 | -rmdir malloc sys 2>/dev/null | 116 | -rmdir malloc sys 2>/dev/null |
| 118 | 117 | ||
| 119 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean | 118 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 052de266dcf..8e0d9c4e5be 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in | |||
| @@ -467,7 +467,7 @@ $(CAL_DIR)/hol-loaddefs.el: $(CAL_SRC) $(CAL_DIR)/diary-loaddefs.el | |||
| 467 | --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \ | 467 | --eval "(setq generated-autoload-file (expand-file-name (unmsys--file-name \"$@\")))" \ |
| 468 | -f batch-update-autoloads $(CAL_DIR) | 468 | -f batch-update-autoloads $(CAL_DIR) |
| 469 | 469 | ||
| 470 | .PHONY: bootstrap-clean distclean maintainer-clean extraclean | 470 | .PHONY: bootstrap-clean distclean maintainer-clean |
| 471 | 471 | ||
| 472 | bootstrap-clean: | 472 | bootstrap-clean: |
| 473 | find $(lisp) -name '*.elc' $(FIND_DELETE) | 473 | find $(lisp) -name '*.elc' $(FIND_DELETE) |
| @@ -479,12 +479,6 @@ distclean: | |||
| 479 | maintainer-clean: distclean bootstrap-clean | 479 | maintainer-clean: distclean bootstrap-clean |
| 480 | rm -f TAGS | 480 | rm -f TAGS |
| 481 | 481 | ||
| 482 | extraclean: bootstrap-clean distclean | ||
| 483 | -for file in $(loaddefs); do rm -f $${file}~; done | ||
| 484 | -rm -f $(lisp)/loaddefs.el~ | ||
| 485 | -find $(lisp) -name '*~' $(FIND_DELETE) | ||
| 486 | -find $(lisp) -name '#*' $(FIND_DELETE) | ||
| 487 | |||
| 488 | .PHONY: check-declare | 482 | .PHONY: check-declare |
| 489 | 483 | ||
| 490 | check-declare: | 484 | check-declare: |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 95126fac100..9338b7191d0 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -979,6 +979,9 @@ be reported. | |||
| 979 | If NO-ERROR is nil, signal an error that no VC backend is | 979 | If NO-ERROR is nil, signal an error that no VC backend is |
| 980 | responsible for the given file." | 980 | responsible for the given file." |
| 981 | (or (and (not (file-directory-p file)) (vc-backend file)) | 981 | (or (and (not (file-directory-p file)) (vc-backend file)) |
| 982 | ;; FIXME it would be more efficient to walk up the directory tree, | ||
| 983 | ;; stopping the first time a backend is responsible. | ||
| 984 | ;; | ||
| 982 | ;; First try: find a responsible backend. If this is for registration, | 985 | ;; First try: find a responsible backend. If this is for registration, |
| 983 | ;; it must be a backend under which FILE is not yet registered. | 986 | ;; it must be a backend under which FILE is not yet registered. |
| 984 | (let ((dirs (delq nil | 987 | (let ((dirs (delq nil |
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in index ce77789db89..fb0ae0e1c21 100644 --- a/lwlib/Makefile.in +++ b/lwlib/Makefile.in | |||
| @@ -93,9 +93,9 @@ globals_h = ../src/globals.h | |||
| 93 | $(globals_h): | 93 | $(globals_h): |
| 94 | $(MAKE) -C ../src globals.h | 94 | $(MAKE) -C ../src globals.h |
| 95 | 95 | ||
| 96 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean extraclean | 96 | .PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean |
| 97 | 97 | ||
| 98 | clean mostlyclean extraclean: | 98 | clean mostlyclean: |
| 99 | rm -f ./*.o liblw.a \#* $(DEPDIR)/* | 99 | rm -f ./*.o liblw.a \#* $(DEPDIR)/* |
| 100 | 100 | ||
| 101 | distclean: clean | 101 | distclean: clean |
diff --git a/nt/Makefile.in b/nt/Makefile.in index 0d448903ba5..3274ff924f9 100644 --- a/nt/Makefile.in +++ b/nt/Makefile.in | |||
| @@ -170,7 +170,7 @@ $(DESTDIR)${archlibdir}: all | |||
| 170 | fi | 170 | fi |
| 171 | 171 | ||
| 172 | .PHONY: install uninstall mostlyclean clean distclean maintainer-clean | 172 | .PHONY: install uninstall mostlyclean clean distclean maintainer-clean |
| 173 | .PHONY: bootstrap-clean extraclean check tags | 173 | .PHONY: bootstrap-clean check tags |
| 174 | 174 | ||
| 175 | install: $(DESTDIR)${archlibdir} | 175 | install: $(DESTDIR)${archlibdir} |
| 176 | @echo | 176 | @echo |
| @@ -203,9 +203,6 @@ distclean: clean | |||
| 203 | bootstrap-clean maintainer-clean: distclean | 203 | bootstrap-clean maintainer-clean: distclean |
| 204 | true | 204 | true |
| 205 | 205 | ||
| 206 | extraclean: maintainer-clean | ||
| 207 | -rm -f *~ \#* | ||
| 208 | |||
| 209 | ## Test the contents of the directory. | 206 | ## Test the contents of the directory. |
| 210 | check: | 207 | check: |
| 211 | @echo "We don't have any tests for the nt/ directory yet." | 208 | @echo "We don't have any tests for the nt/ directory yet." |
diff --git a/src/Makefile.in b/src/Makefile.in index b8bad73b006..d9f65b5bd0e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -671,7 +671,7 @@ ns-app: emacs$(EXEEXT) $(pdmp) | |||
| 671 | $(MAKE) -C ../nextstep all | 671 | $(MAKE) -C ../nextstep all |
| 672 | 672 | ||
| 673 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean | 673 | .PHONY: mostlyclean clean bootstrap-clean distclean maintainer-clean |
| 674 | .PHONY: versionclean extraclean | 674 | .PHONY: versionclean |
| 675 | 675 | ||
| 676 | mostlyclean: | 676 | mostlyclean: |
| 677 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o | 677 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o |
| @@ -706,9 +706,6 @@ distclean: bootstrap-clean | |||
| 706 | 706 | ||
| 707 | maintainer-clean: distclean | 707 | maintainer-clean: distclean |
| 708 | rm -f TAGS | 708 | rm -f TAGS |
| 709 | extraclean: distclean | ||
| 710 | rm -f ./*~ \#* TAGS config.in | ||
| 711 | |||
| 712 | 709 | ||
| 713 | ETAGS = ../lib-src/etags${EXEEXT} | 710 | ETAGS = ../lib-src/etags${EXEEXT} |
| 714 | 711 | ||