autotools: Add -I$(srcdir)/lib/efl to Makefile_Efl.am.
authorSavio Sena <savio@expertisesolutions.com.br>
Wed, 3 Sep 2014 17:58:04 +0000 (14:58 -0300)
committerSavio Sena <savio@expertisesolutions.com.br>
Fri, 12 Sep 2014 18:28:23 +0000 (15:28 -0300)
Also simplified it by adding $EOS variable.

src/Makefile_Efl.am

index 3b0298f5193ffb30b2997d9e2fc3225b455d44db..508c694ec2709f5a47cbbd799fb0dd6eb4cca7e4 100644 (file)
@@ -1,37 +1,26 @@
-BUILT_SOURCES += \
-                 lib/efl/interfaces/efl_control.eo.c \
-                 lib/efl/interfaces/efl_control.eo.h \
-                 lib/efl/interfaces/efl_file.eo.c \
-                 lib/efl/interfaces/efl_file.eo.h \
-                 lib/efl/interfaces/efl_image.eo.c \
-                 lib/efl/interfaces/efl_image.eo.h \
-                 lib/efl/interfaces/efl_player.eo.c \
-                 lib/efl/interfaces/efl_player.eo.h \
-                 lib/efl/interfaces/efl_text.eo.c \
-                 lib/efl/interfaces/efl_text.eo.h \
-                 lib/efl/interfaces/efl_text_properties.eo.c \
-                 lib/efl/interfaces/efl_text_properties.eo.h
+EOS = \
+           lib/efl/interfaces/efl_control.eo \
+      lib/efl/interfaces/efl_file.eo \
+      lib/efl/interfaces/efl_image.eo \
+      lib/efl/interfaces/efl_player.eo \
+      lib/efl/interfaces/efl_text.eo \
+      lib/efl/interfaces/efl_text_properties.eo
 
-efleolianfilesdir = $(datadir)/eolian/include/efl-@VMAJ@
-efleolianfiles_DATA = \
-              lib/efl/interfaces/efl_control.eo \
-              lib/efl/interfaces/efl_file.eo \
-              lib/efl/interfaces/efl_image.eo \
-              lib/efl/interfaces/efl_player.eo \
-              lib/efl/interfaces/efl_text.eo \
-              lib/efl/interfaces/efl_text_properties.eo
+EOS_H = $(EOS:%.eo=%.eo.h)
+EOS_C = $(EOS:%.eo=%.eo.c)
 
 EXTRA_DIST += \
               ${efleolianfiles_DATA} \
               lib/efl/Efl_Config.h \
               lib/efl/Efl.h
 
-lib_LTLIBRARIES += lib/efl/libefl.la
+efleolianfilesdir = $(datadir)/eolian/include/efl-@VMAJ@
+efleolianfiles_DATA = $(EOS)
 
-lib_efl_libefl_la_SOURCES = \
-              lib/efl/interfaces/efl_interfaces_main.c
+lib_LTLIBRARIES += lib/efl/libefl.la
 
-lib_efl_libefl_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EFL_CFLAGS@
+lib_efl_libefl_la_SOURCES = lib/efl/interfaces/efl_interfaces_main.c
+lib_efl_libefl_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl -I$(top_srcdir)/src/lib/efl @EFL_CFLAGS@
 lib_efl_libefl_la_LIBADD = @EFL_LIBS@
 lib_efl_libefl_la_DEPENDENCIES = @EFL_INTERNAL_LIBS@
 lib_efl_libefl_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
@@ -42,10 +31,4 @@ dist_installed_eflheaders_DATA = \
               lib/efl/Efl.h
 
 installed_eflinterfacesdir = $(includedir)/efl-@VMAJ@/interfaces
-nodist_installed_eflinterfaces_DATA = \
-              lib/efl/interfaces/efl_control.eo.h \
-              lib/efl/interfaces/efl_file.eo.h \
-              lib/efl/interfaces/efl_image.eo.h \
-              lib/efl/interfaces/efl_player.eo.h \
-              lib/efl/interfaces/efl_text.eo.h \
-              lib/efl/interfaces/efl_text_properties.eo.h
+nodist_installed_eflinterfaces_DATA = $(EOS_H)