This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] New target bench-clean
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 15 Apr 2013 13:47:51 +0530
- Subject: [PATCH] New target bench-clean
Hi,
This patch adds a new target 'bench-clean' as a convenience target to
remove all benchmark object code and binaries. OK to commit?
Siddhesh
* Makefile.in (bench-clean): New target.
* benchtests/Makefile (bench-clean): Likewise.
diff --git a/Makefile.in b/Makefile.in
index d8424ee..85744b5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -15,6 +15,9 @@ install:
bench:
$(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
+bench-clean:
+ $(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
+
# Convenience target to rebuild ULPs for all math tests.
regen-ulps:
$(MAKE) -C $(srcdir)/math $(PARALLELMFLAGS) objdir=`pwd` $@
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 965eceb..6c0e033 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -124,6 +124,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; \