From b8e39ac5e48ffd447acef8dc7976a462fd762afc Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Fri, 31 Jul 2015 13:24:39 -0400 Subject: [PATCH] build: don't use BUILT_SOURCES for the static context header BUILT_SOURCES simply forces the header to be built first. Use real dependencies instead. This fixes builds with dependency tracking disabled where a real target is specified. As a bonus, this also fixes the issue of gen_context and the header not being rebuilt when gen_context.c is touched. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2609c7feed1..01474181feb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,7 +86,8 @@ gen_%.o: src/gen_%.c gen_context$(BUILD_EXEEXT): $(gen_context_OBJECTS) $(CC_FOR_BUILD) $^ -o $@ -BUILT_SOURCES = src/ecmult_static_context.h +$(libsecp256k1_la_OBJECTS): src/ecmult_static_context.h +$(tests_OBJECTS): src/ecmult_static_context.h src/ecmult_static_context.h: gen_context ./gen_context