aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Eo.am
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-10-02 16:52:45 +0100
committerTom Hacohen <tom@stosb.com>2014-10-02 16:54:08 +0100
commit23143148f1a02b605bbdbc839e6d0c60dd6df300 (patch)
tree009be6d0f8516a87cd9090033cdbfe176b5ea6d2 /src/Makefile_Eo.am
parentevas: tests tgv file decoding. (diff)
downloadefl-23143148f1a02b605bbdbc839e6d0c60dd6df300.tar.gz
Build system: Clean up the generation of sources from eolian.
This cleans up a lot of the build system. This makes everything consistent, clean, less redundant and also fixes the issue of make clean not cleaning up generated files.
Diffstat (limited to 'src/Makefile_Eo.am')
-rw-r--r--src/Makefile_Eo.am25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/Makefile_Eo.am b/src/Makefile_Eo.am
index 28c7d5cc57..835c55c0a6 100644
--- a/src/Makefile_Eo.am
+++ b/src/Makefile_Eo.am
@@ -1,11 +1,22 @@
### Library
+eo_eolian_files = \
+ lib/eo/eo_base.eo.c \
+ lib/eo/eo_base.eo.h \
+ lib/eo/eo_abstract_class.eo.c \
+ lib/eo/eo_abstract_class.eo.h
+
+eo_eolian_c = $(eo_eolian_files:%.eo=%.eo.c)
+eo_eolian_h = $(eo_eolian_files:%.eo=%.eo.h)
+
BUILT_SOURCES += \
- lib/eo/eo_base.eo.c \
- lib/eo/eo_base.eo.h \
- lib/eo/eo_abstract_class.eo.c \
- lib/eo/eo_abstract_class.eo.h
+ $(eo_eolian_c) \
+ $(eo_eolian_h)
+
+CLEANFILES += \
+ $(eo_eolian_c) \
+ $(eo_eolian_h)
lib_LTLIBRARIES += lib/eo/libeo.la
@@ -13,8 +24,7 @@ installed_eomainheadersdir = $(includedir)/eo-@VMAJ@
dist_installed_eomainheaders_DATA = lib/eo/Eo.h
nodist_installed_eomainheaders_DATA = \
- lib/eo/eo_base.eo.h \
- lib/eo/eo_abstract_class.eo.h
+ $(eo_eolian_h)
lib_eo_libeo_la_SOURCES = \
lib/eo/eo.c \
@@ -31,8 +41,7 @@ lib_eo_libeo_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
eoeolianfilesdir = $(datadir)/eolian/include/eo-@VMAJ@
eoeolianfiles_DATA = \
- lib/eo/eo_base.eo \
- lib/eo/eo_abstract_class.eo
+ $(eo_eolian_files)
EXTRA_DIST += \
${eoeolianfiles_DATA}