build_eolian_cxx_test: Set dependencies correctly and remove BUILT_SOURCES
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 5 Aug 2014 15:39:49 +0000 (17:39 +0200)
committerStefan Schmidt <s.schmidt@samsung.com>
Tue, 5 Aug 2014 15:39:49 +0000 (17:39 +0200)
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

index b21b760..124a623 100644 (file)
@@ -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 =   \