From bfdc83b85f982b4edbef4c84673f574a0608a0b6 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 5 Aug 2014 17:39:49 +0200 Subject: [PATCH] build_eolian_cxx_test: Set dependencies correctly and remove BUILT_SOURCES This took quite a while to figure out. The two object names for the cxx callback test and callback.c have been to close. callback.c needs the eolian headers and the CXX test needs the eolian_cxx headers. Split it up and set the deps correctly. If you always run check with something like -j 9 you might have never noticed as it was very likely that the headers have been generated due to the wrong dep before. --- src/Makefile_Eolian_Cxx.am | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am index b21b76041b..124a623e04 100644 --- a/src/Makefile_Eolian_Cxx.am +++ b/src/Makefile_Eolian_Cxx.am @@ -54,10 +54,6 @@ bin_eolian_cxx_eolian_cxx_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@ if EFL_ENABLE_TESTS -BUILT_SOURCES += \ - tests/eolian_cxx/callback.eo.c \ - tests/eolian_cxx/callback.eo.h - check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite TESTS += tests/eolian_cxx/eolian_cxx_suite @@ -68,7 +64,10 @@ tests/eolian_cxx/callback.c \ tests/eolian_cxx/eolian_cxx_test_callback.cc \ tests/eolian_cxx/eolian_cxx_test_generate.cc -tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h +tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh + +tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-callback.$(OBJEXT): tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h + CLEANFILES += tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \