From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: [RFA/testsuite/ada] re-implement make clean & distclean
Date: Sun, 31 Dec 2006 10:08:00 -0000 [thread overview]
Message-ID: <20061231100755.GQ3640@adacore.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 761 bytes --]
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 <brobecker@adacore.com>
* gdb.ada/Makefile.in (EXECUTABLES): Delete.
(MISCELLANEOUS): Delete.
(clean): Re-implement.
(mostlyclean): Likewise.
Tested on my x86-linux laptop. Any objection?
Thank you,
--
Joel
[-- Attachment #2: gdb.ada.clean.dif --]
[-- Type: text/plain, Size: 1306 bytes --]
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
next reply other threads:[~2006-12-31 10:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-31 10:08 Joel Brobecker [this message]
2006-12-31 13:12 ` Mark Kettenis
2006-12-31 14:31 ` Joel Brobecker
2006-12-31 14:54 ` Jim Blandy
2006-12-31 15:19 ` Daniel Jacobowitz
2006-12-31 15:27 ` Joel Brobecker
2006-12-31 18:05 ` Daniel Jacobowitz
2007-01-01 14:14 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061231100755.GQ3640@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox