diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-15 11:17:01 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-04-15 11:17:01 +0530 |
commit | acb4325fc72d5eeecf3cf3fe63c599e582bb3bd0 (patch) | |
tree | fd915e15e9d41a4066bc1fbd8d5fcd5fb7582c7d /benchtests/Makefile | |
parent | 477925062fd2fb720c54a17d15f512247860e34a (diff) | |
download | glibc-acb4325fc72d5eeecf3cf3fe63c599e582bb3bd0.tar.gz glibc-acb4325fc72d5eeecf3cf3fe63c599e582bb3bd0.tar.xz glibc-acb4325fc72d5eeecf3cf3fe63c599e582bb3bd0.zip |
Rebuild benchmark sources when Makefile is updated
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.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r-- | benchtests/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 86d59057f2..3e794d798e 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; \ |