# HG changeset patch # User Andreas Schwab # Date 1214351052 0 # Node ID 6d4da22a2b958d879c8297fe419fe079bed48c16 # Parent 366bb0df9a4682ee351ab1c28cbe28edf20e0a7a (bootstrap-clean): Do what distclean does but don't remove Makefile. (distclean): Depend on bootstrap-clean and remove Makefile. diff -r 366bb0df9a46 -r 6d4da22a2b95 src/ChangeLog --- a/src/ChangeLog Tue Jun 24 23:00:25 2008 +0000 +++ b/src/ChangeLog Tue Jun 24 23:44:12 2008 +0000 @@ -2,6 +2,9 @@ * Makefile.in (${lispsource}/loaddefs.el): Renamed from ../lisp/loaddefs.el. + (bootstrap-clean): Do what distclean does but don't remove + Makefile. + (distclean): Depend on bootstrap-clean and remove Makefile. 2008-06-24 Chong Yidong diff -r 366bb0df9a46 -r 6d4da22a2b95 src/Makefile.in --- a/src/Makefile.in Tue Jun 24 23:00:25 2008 +0000 +++ b/src/Makefile.in Tue Jun 24 23:44:12 2008 +0000 @@ -1281,17 +1281,20 @@ rm -f buildobj.lst clean: mostlyclean rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} -/**/# This is used in making a distribution. -/**/# Do not use it on development directories! -distclean: clean - rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-* - mv ./.gdbinit ./.gdbinit.save - if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \ - else mv ./.gdbinit.save ./.gdbinit; fi /* bootstrap-clean is used to clean up just before a bootstrap. It should remove all files generated during a compilation/bootstrap, but not things like config.status or TAGS. */ -bootstrap-clean: distclean +bootstrap-clean: clean + rm -f epaths.h config.h Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-* + if test -f ./.gdbinit; then \ + mv ./.gdbinit ./.gdbinit.save; \ + if test -f "${srcdir}/.gdbinit"; then rm -f ./.gdbinit.save; \ + else mv ./.gdbinit.save ./.gdbinit; fi; \ + fi +/**/# This is used in making a distribution. +/**/# Do not use it on development directories! +distclean: bootstrap-clean + rm -f Makefile maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild."