From 7dc493e68fbe17cdc72cd3707b2654fc0cab3f50 Mon Sep 17 00:00:00 2001 From: Bruno Dilly Date: Tue, 27 Sep 2016 22:54:58 -0300 Subject: [PATCH] examples/elementary: drop generated.h from SOURCES Remove codegen_example_generated.h from codegen_example_SOURCES and let it only on nodist_codegen_example_SOURCES and on BUILT_SOURCES. Also add dependency between codegen_example.c and codegen_example_generated.h since it's required to compile. Avoid the following build error: CODEGEN codegen_example_generated.c codegen_example.c:26:39: fatal error: codegen_example_generated.h: No such file or directory compilation terminated. Makefile:4960: recipe for target 'codegen_example.o' failed --- elementary/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elementary/Makefile.am b/elementary/Makefile.am index 84bc4911..fc279c1b 100644 --- a/elementary/Makefile.am +++ b/elementary/Makefile.am @@ -258,8 +258,9 @@ codegen_example_generated.c codegen_example_generated.h: codegen_example.edj BUILT_SOURCES = codegen_example_generated.c codegen_example_generated.h +codegen_example.c: codegen_example_generated.h + codegen_example_SOURCES = \ - codegen_example_generated.h \ codegen_example.c nodist_codegen_example_SOURCES = \ codegen_example_generated.c \