From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17469 invoked by alias); 31 Dec 2006 10:08:08 -0000 Received: (qmail 17459 invoked by uid 22791); 31 Dec 2006 10:08:08 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 10:08:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 8762F48CE0F for ; Sun, 31 Dec 2006 05:07:07 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12534-01-8 for ; Sun, 31 Dec 2006 05:07:07 -0500 (EST) Received: from takamaka.act-europe.fr (AStDenis-105-1-28-173.w81-248.abo.wanadoo.fr [81.248.254.173]) by nile.gnat.com (Postfix) with ESMTP id 8D9CF48CDA3 for ; Sun, 31 Dec 2006 05:07:06 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 1000) id 671E334C099; Sun, 31 Dec 2006 14:07:55 +0400 (RET) Date: Sun, 31 Dec 2006 10:08:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA/testsuite/ada] re-implement make clean & distclean Message-ID: <20061231100755.GQ3640@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="cpvLTH7QU4gwfq3S" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00396.txt.bz2 --cpvLTH7QU4gwfq3S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 761 Hello, The current implementation for make clean requires us that we update the EXECUTABLES list each time we add a new testcase. It was a vague copy/paste of some code I probably found in one of the nearby Makefiles... It was causing me a bit of grief that certain files would not be deleted when I did a "make clean", in particular the executables produced by gnatmake. I decided to replace this with an approach we have been using with great success in our own testsuite for years... 2006-12-31 Joel Brobecker * gdb.ada/Makefile.in (EXECUTABLES): Delete. (MISCELLANEOUS): Delete. (clean): Re-implement. (mostlyclean): Likewise. Tested on my x86-linux laptop. Any objection? Thank you, -- Joel --cpvLTH7QU4gwfq3S Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gdb.ada.clean.dif" Content-length: 1306 Index: Makefile.in =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.ada/Makefile.in,v retrieving revision 1.2 diff -u -p -r1.2 Makefile.in --- Makefile.in 3 Feb 2005 03:58:52 -0000 1.2 +++ Makefile.in 31 Dec 2006 10:00:46 -0000 @@ -1,24 +1,16 @@ VPATH = @srcdir@ srcdir = @srcdir@ -EXECUTABLES = null_record/null_record fixed_points/fixed_points - -MISCELLANEOUS = - all info install-info dvi install uninstall installcheck check: @echo "Nothing to be done for $@..." clean mostlyclean: - -find . -name '*.o' -print | xargs rm -f - -find . -name '*.ali' -print | xargs rm -f - -find . -name 'b~*.ad[sb]' -print | xargs rm -f - -rm -f *~ a.out xgdb *.x *.ci *.tmp - -rm -f *~ *.o a.out xgdb *.x *.ci *.tmp - -rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES) - -rm -f $(MISCELLANEOUS) twice-tmp.c + -find . ! \( -name CVS -prune \) ! -type d \ + ! -name '*.ad[sb]' ! -name '*.[hc]' ! -name '*.gpr' \ + ! -name '*.exp' \ + ! -name 'Makefile*' \ + -exec rm -f {} \; + -find . -name 'b~*.ad[sb]' -exec rm -f {} \; distclean maintainer-clean realclean: clean - -rm -f *~ core - -rm -f Makefile config.status config.log - -rm -f *-init.exp - -rm -fr *.log summary detail *.plog *.sum *.psum site.* + -rm -f Makefile --cpvLTH7QU4gwfq3S--