This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2.1] Rebuild benchmark sources when Makefile is updated


Hi,

Here's this patch again, now based on latest master.  This forces
rebuild of benchmark tests whenever the Makefile is modified, so that
changes to benchmark parameters are reflected.  OK to commit?

Siddhesh

	* benchtests/Rules (bench-deps): Collect dependencies into a
	single variable.  Add Makefile to dependencies.
	($(objpfx)bench-%.c): Depend on bench-deps.

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 86d5905..3e794d7 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -114,6 +114,8 @@ include ../Rules
 
 binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
 
+bench-deps := bench-skeleton.c Makefile
+
 run-bench = $(test-wrapper-env) \
 	    GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
 	    $($*-ENV) $(rtld-prefix) $${run}
@@ -133,7 +135,7 @@ $(binaries-bench): %: %.o \
   $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
 	$(+link)
 
-$(objpfx)bench-%.c: %-inputs bench-skeleton.c
+$(objpfx)bench-%.c: %-inputs $(bench-deps)
 	{ if [ -n "$($*-INCLUDE)" ]; then \
 	  cat $($*-INCLUDE); \
 	fi; \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]