This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Rebuild benchmark sources when Makefile is updated
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 3 Apr 2013 13:35:26 +0530
- Subject: [PATCH] Rebuild benchmark sources when Makefile is updated
Hi,
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. OK to commit?
Siddhesh
* Rules ($(objpfx)bench-%.c): Depend on Makefile.
diff --git a/Rules b/Rules
index 02cdb4a..a3d97f0 100644
--- a/Rules
+++ b/Rules
@@ -209,7 +209,7 @@ $(binaries-bench): %: %.o \
$(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
$(+link)
-$(objpfx)bench-%.c: %-inputs bench-skeleton.c
+$(objpfx)bench-%.c: %-inputs bench-skeleton.c Makefile
{ if [ -n "$($*-INCLUDE)" ]; then \
cat $($*-INCLUDE); \
fi; \