* 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.
@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'"
### 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)))
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
$(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