This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Remove toplevel build subdir in make distclean
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Sun, 27 Apr 2003 16:33:08 -0400
- Subject: Remove toplevel build subdir in make distclean
When BUILD_SUBDIR was introduced, it wasn't added to local-distclean in the
top level; so a build-sun4/ directory has started showing up in my work
directory after making a binutils snapshot. Any objection to this patch?
It doesn't need the "." check above; configure.in makes sure that
build_subdir will always start with "build-".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-04-27 Daniel Jacobowitz <drow at mvista dot com>
* Makefile.tpl: Clean $(BUILD_SUBDIR).
* Makefile.in: Regenerated.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/Makefile.in,v
retrieving revision 1.124
diff -u -p -r1.124 Makefile.in
--- Makefile.in 19 Apr 2003 00:19:40 -0000 1.124
+++ Makefile.in 27 Apr 2003 20:29:36 -0000
@@ -1112,6 +1112,7 @@ local-distclean:
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
+ -rm -rf $(BUILD_SUBDIR)
-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
Index: Makefile.tpl
===================================================================
RCS file: /cvs/src/src/Makefile.tpl,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile.tpl
--- Makefile.tpl 19 Apr 2003 00:19:40 -0000 1.56
+++ Makefile.tpl 27 Apr 2003 20:29:36 -0000
@@ -672,6 +672,7 @@ local-distclean:
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
+ -rm -rf $(BUILD_SUBDIR)
-rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
-rm -f texinfo/doc/Makefile texinfo/po/POTFILES
-rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null