[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 12d2fd6 1/2: Fix 'extraclean' targets
From: |
Eli Zaretskii |
Subject: |
master 12d2fd6 1/2: Fix 'extraclean' targets |
Date: |
Thu, 1 Apr 2021 09:00:31 -0400 (EDT) |
branch: master
commit 12d2fd6037a87241f0966427f5788eb939c37c53
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix 'extraclean' targets
* 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 | 2 ++
Makefile.in | 2 +-
lisp/Makefile.in | 4 +++-
lwlib/Makefile.in | 4 ++--
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/GNUmakefile b/GNUmakefile
index f271638..c8d4832 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -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'"
diff --git a/Makefile.in b/Makefile.in
index 4fa7c9e..f3ba50c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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)))
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index 8ea2841..d62c2cf 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -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
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index fb0ae0e..ce77789 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -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