changeset 42224:9709e1618364

(distclean): Remove .gdbinit if we are building outside the source tree.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 21 Dec 2001 11:40:15 +0000
parents e5cf11c58b71
children 8ef1ae58dc29
files src/Makefile.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.in	Fri Dec 21 11:07:49 2001 +0000
+++ b/src/Makefile.in	Fri Dec 21 11:40:15 2001 +0000
@@ -1171,6 +1171,9 @@
 /**/# 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
 maintainer-clean: distclean
 	@echo "This command is intended for maintainers to use;"
 	@echo "it deletes files that may require special tools to rebuild."