* 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.
### 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.
## 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
## 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
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.
--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:
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}