From: Andreas Schwab Date: Tue, 24 Jun 2008 23:44:12 +0000 (+0000) Subject: (bootstrap-clean): Do what distclean does but don't remove X-Git-Tag: emacs-pretest-23.0.90~4535 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd13748d94825485b6283af05c749f74289cf037;p=emacs.git (bootstrap-clean): Do what distclean does but don't remove Makefile. (distclean): Depend on bootstrap-clean and remove Makefile. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6a9cfc4b840..ac75c5d24fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/Makefile.in b/src/Makefile.in index 67bd98df30a..ae2a2fe3231 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1281,17 +1281,20 @@ mostlyclean: 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."