build: remove BUILT_SOURCES usage from cxx examples makefiles
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 20 Jul 2018 21:46:44 +0000 (17:46 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 8 Aug 2018 02:19:28 +0000 (11:19 +0900)
ref T7154

Differential Revision: https://phab.enlightenment.org/D6656

src/examples/Makefile.am
src/examples/eolian_cxx.mk

index f2e2b4f..e987a44 100644 (file)
@@ -1,7 +1,6 @@
 AUTOMAKE_OPTIONS= -Wno-portability
 CLEANFILES =
 DISTCLEANFILES =
-BUILT_SOURCES =
 MAINTAINERCLEANFILES = Makefile.in
 EXTRA_PROGRAMS =
 DATA_FILES =
@@ -267,7 +266,6 @@ $(top_builddir)/src/bin/edje_cc$(EXEEXT):
 
 EXTRA_DIST += $(EDCS) $(DATA_FILES)
 EDJS = $(EDCS:%.edc=%.edj)
-CLEANFILES += $(BUILT_SOURCES)
 
 examples: $(EXTRA_PROGRAMS) $(EDJS)
 
index aa14652..589c8b5 100644 (file)
@@ -1,9 +1,3 @@
-EOL_CXX_IMPL = \
-eolian_cxx/colourable.c \
-eolian_cxx/colourable_cxx.cc \
-eolian_cxx/colourablesquare.c \
-eolian_cxx/colourablesquare_cxx.cc
-
 EOL_CXX_SRCS = \
 eolian_cxx/eolian_cxx_simple_01.cc \
 eolian_cxx/eolian_cxx_callbacks_01.cc \
@@ -23,7 +17,7 @@ eolian_cxx/ns_colourablesquare.eo.h \
 eolian_cxx/ns_colourablesquare.eo.hh \
 eolian_cxx/ns_colourablesquare.eo.impl.hh
 
-BUILT_SOURCES += $(EOL_CXX_GENERATED)
+DISTCLEANFILES += $(EOL_CXX_GENERATED)
 
 EXTRA_PROGRAMS += \
 eolian_cxx_eolian_cxx_simple_01 \
@@ -56,6 +50,32 @@ eolian_cxx_eolian_cxx_callbacks_01_CPPFLAGS = \
 $(AM_CPPFLAGS) \
 -I$(top_builddir)/src/examples/eolian_cxx
 
+if HAVE_AM_16
+eolian_cxx/eolian_cxx_simple_01-eolian_cxx_simple_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01-colourable.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01-colourablesquare.$(OBJEXT): $(EOL_CXX_GENERATED)
+
+eolian_cxx/eolian_cxx_simple_01_cxx_impl-eolian_cxx_simple_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01_cxx_impl-colourable.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01_cxx_impl-colourable_cxx.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01_cxx_impl-colourablesquare.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_simple_01_cxx_impl-colourablesquare_cxx.$(OBJEXT): $(EOL_CXX_GENERATED)
+
+eolian_cxx/eolian_cxx_callbacks_01-eolian_cxx_callbacks_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+else
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01-eolian_cxx_simple_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01-colourable.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01-colourablesquare.$(OBJEXT): $(EOL_CXX_GENERATED)
+
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01_cxx_impl-eolian_cxx_simple_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01_cxx_impl-colourable.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01_cxx_impl-colourable_cxx.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01_cxx_impl-colourablesquare.$(OBJEXT): $(EOL_CXX_GENERATED)
+eolian_cxx/eolian_cxx_eolian_cxx_simple_01_cxx_impl-colourablesquare_cxx.$(OBJEXT): $(EOL_CXX_GENERATED)
+
+eolian_cxx/eolian_cxx_eolian_cxx_callbacks_01-eolian_cxx_callbacks_01.$(OBJEXT): $(EOL_CXX_GENERATED)
+endif
+
 endif
 
 EOL_CXX_DATA_FILES = eolian_cxx/Makefile.examples $(ECXX_EXAMPLE_EOS) $(EOL_CXX_SRCS)