This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] New target bench-clean
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 16 Apr 2013 14:10:11 +0530
- Subject: [COMMITTED] New target bench-clean
- References: <20130415081751 dot GM9444 at spoyarek dot pnq dot redhat dot com> <20130415165431 dot A62212C067 at topped-with-meat dot com>
On Mon, Apr 15, 2013 at 09:54:31AM -0700, Roland McGrath wrote:
> > @@ -15,6 +15,9 @@ install:
> > bench:
> > $(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
> >
> > +bench-clean:
> > + $(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
>
> Just give the "bench:" line two targets.
Thanks, this is what I committed.
Siddhesh
commit a2964074322106ab2350cdefa676de3664083b0a
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Tue Apr 16 14:07:21 2013 +0530
Add target bench-clean
diff --git a/ChangeLog b/ChangeLog
index 3950442..8b53c33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-16 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * Makefile.in (bench-clean): New target.
+ * benchtests/Makefile (bench-clean): Likewise.
+
2013-04-16 David Holsgrove <david.holsgrove@xilinx.com>
* elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
diff --git a/Makefile.in b/Makefile.in
index d8424ee..945bc32 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -12,7 +12,7 @@ install:
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
-bench:
+bench bench-clean:
$(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
# Convenience target to rebuild ULPs for all math tests.
diff --git a/benchtests/Makefile b/benchtests/Makefile
index bd0925b..097d3c3 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -120,6 +120,9 @@ run-bench = $(test-wrapper-env) \
GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
$($*-ENV) $(rtld-prefix) $${run}
+bench-clean:
+ rm -f $(binaries-bench) $(addsuffix .o,$(binaries-bench))
+
bench: $(binaries-bench)
{ for run in $^; do \
echo "Running $${run}" >&2; \