]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'extraclean' targets
authorEli Zaretskii <eliz@gnu.org>
Thu, 1 Apr 2021 12:57:55 +0000 (15:57 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 1 Apr 2021 12:57:55 +0000 (15:57 +0300)
* GNUmakefile: Add description of 'extraclean'.

* Makefile.in (extraclean_dirs): Add lwlib.

* lwlib/Makefile.in (clean mostlyclean extraclean): Add
'extraclean' target.

* lisp/Makefile.in (extraclean): Remove ${loaddefs}, not just
${LOADDEFS}.  Delete all backup and autosave files.

GNUmakefile
Makefile.in
lisp/Makefile.in
lwlib/Makefile.in

index f27163840b76349476ba3aaba8a010c2d6ac09c5..c8d4832aab11e6eacbcd56c9a32604186033f0de 100644 (file)
@@ -50,6 +50,8 @@ help:
        @echo "make distclean        -- delete all build and configuration files,"
        @echo "                         leave only files included in source distribution"
        @echo "make maintainer-clean -- delete almost everything that can be regenerated"
+       @echo "make extraclean       -- like maintainer-clean, and also all generated files,"
+       @echo "                         backup files and autosave files"
        @echo "make bootstrap        -- delete all compiled files to force a new bootstrap"
        @echo "                         from a clean slate, then build in the normal way"
        @echo "make uninstall        -- remove files installed by 'make install'"
index 4fa7c9ed5f1a3a09117c8e1924ada48ce3debb55..f3ba50c55ed466b8e25ca3447989891542f46f67 100644 (file)
@@ -923,7 +923,7 @@ 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 lisp lib
+  admin/charsets admin/grammars admin/unidata lisp lib lwlib
 
 $(foreach dir,$(extraclean_dirs),$(eval $(call submake_template,$(dir),extraclean)))
 
index 8ea284155851954b6b03038854f1d19edc05db78..d62c2cfbbed4b6c13688b55540be56a9ecab28e3 100644 (file)
@@ -449,8 +449,10 @@ maintainer-clean: distclean bootstrap-clean
        rm -f TAGS
 
 extraclean: bootstrap-clean distclean
-       -for file in $(LOADDEFS); do rm -f $${file}~; done
+       -for file in $(loaddefs); do rm -f $${file}~; done
        -rm -f $(lisp)/loaddefs.el~
+       -find $(lisp) -name '*~' $(FIND_DELETE)
+       -find $(lisp) -name '#*' $(FIND_DELETE)
 
 .PHONY: check-declare
 
index fb0ae0e1c21328971c720c2bbf52f4476fa153e5..ce77789db89c476ee0d5fa99758f5ea9e45206ee 100644 (file)
@@ -93,9 +93,9 @@ globals_h = ../src/globals.h
 $(globals_h):
        $(MAKE) -C ../src globals.h
 
-.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
+.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean extraclean
 
-clean mostlyclean:
+clean mostlyclean extraclean:
        rm -f ./*.o liblw.a \#* $(DEPDIR)/*
 
 distclean: clean