]> sourceware.org Git - glibc.git/commitdiff
Rebuild benchmark sources when Makefile is updated
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 15 Apr 2013 05:47:01 +0000 (11:17 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 15 Apr 2013 05:47:01 +0000 (11:17 +0530)
Benchmark programs are generated using parameters from the Makefile,
so it is necessary to rebuild them whenever the parameters in the
Makefile are updated.  Hence, added a dependency for the generated C
source on the Makefile so that it gets regenerated when the Makefile
is updated.

ChangeLog
benchtests/Makefile

index 96be3baeb5b79c5c2d98ff912bdcc868369fd170..b80865e7dfe49f7e190ba5520c40014cb8a94d12 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * benchtests/Rules (bench-deps): Collect dependencies into a
+       single variable.  Add Makefile to dependencies.
+       ($(objpfx)bench-%.c): Depend on bench-deps.
+
 2013-04-12  Roland McGrath  <roland@hack.frob.com>
            Xavier Roche  <roche+kml2@exalead.com>
 
index 86d59057f2740d2cb5fae965b536adb208273e51..3e794d798e9aafa62c2f6ce19ba3c1cb4c877407 100644 (file)
@@ -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; \
This page took 0.112845 seconds and 5 git commands to generate.