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] Rebuild benchmark sources when Makefile is updated


On Mon, Apr 08, 2013 at 03:09:56PM -0700, Roland McGrath wrote:
> I may be missing some context because I didn't find time to review your
> original bench/ additions and they went in without my involvement.
> 
> Why is any of this stuff in Rules at all?  It appears to be relevant only
> to bench/Makefile and so it should be there.  Is there some intent to
> support the 'bench' variable in other subdir makefiles?

and here's this patch updated to apply to benchtests/Rules instead.

Siddhesh

	* benchtests/Rules ($(objpfx)bench-%.c): Depend on Makefile.

diff --git a/benchtests/Rules b/benchtests/Rules
index 4715084..9906bb0 100644
--- a/benchtests/Rules
+++ b/benchtests/Rules
@@ -40,7 +40,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; \


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