about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-04-16 14:07:21 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-04-16 14:07:21 +0530
commita2964074322106ab2350cdefa676de3664083b0a (patch)
tree4f364c3ec966dd837257008580eb0604a398b4b6
parent9fbf9acabe941408b77aa03703b5685d60ef3ab3 (diff)
downloadglibc-a2964074322106ab2350cdefa676de3664083b0a.tar.gz
glibc-a2964074322106ab2350cdefa676de3664083b0a.tar.xz
glibc-a2964074322106ab2350cdefa676de3664083b0a.zip
Add target bench-clean
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in2
-rw-r--r--benchtests/Makefile3
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 39504425f3..8b53c33981 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 d8424ee432..945bc32d4d 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 bd0925b926..097d3c3560 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; \