From 5cd81881e221d2943ca41b2da7bb87c0ede3386b Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 6 Feb 2017 18:28:33 +0000 Subject: Eliminate libm-test.stmp. math/Makefile uses libm-test.stmp to handle dependencies involving multiple generated files all generated by a single sequence of commands in a single Makefile rule. Having separated the libm-test-ulps.h and libm-test.c generation into separate runs of gen-libm-test.pl, there is now no need for a single rule to generate multiple target files; each of the three target files involved can be generated by a separate Makefile rule, meaning normal dependencies on the individual files can be used and so libm-test.stmp is not needed at all. This patch does just that, eliminating the .stmp file, in further preparation for when there are many separate libm-test-.c files generated from libm-test-.inc and the dependencies are on just the relevant .c file in each case. Tested for x86_64. * math/Makefile (generated): Do not include libm-test.stmp. ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend on $(objpfx)libm-test.stmp. ($(objpfx)libm-test.stmp): Remove rule. ($(objpfx)libm-test-ulps.h): New rule. ($(objpfx)libm-test.c): Likewise. ($(objpfx)libm-have-vector-test.h): Likewise. ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on individual generated files, not libm-test.stmp. --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index d5516f0e79..cde75b3fe1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2017-02-06 Joseph Myers + * math/Makefile (generated): Do not include libm-test.stmp. + ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend + on $(objpfx)libm-test.stmp. + ($(objpfx)libm-test.stmp): Remove rule. + ($(objpfx)libm-test-ulps.h): New rule. + ($(objpfx)libm-test.c): Likewise. + ($(objpfx)libm-have-vector-test.h): Likewise. + ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on + individual generated files, not libm-test.stmp. + * math/gen-libm-test.pl ($output_dir): Remove variable. ($srcdir): Likewise. ($opt_a): New variable. -- cgit v1.2.3