aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Edje.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_Edje.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_Edje.am')
-rw-r--r--src/Makefile_Edje.am27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index b09f0a3694..c92372f186 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -1,19 +1,25 @@
### Library
+edje_eolian_files = \
+ lib/edje/edje_object.eo \
+ lib/edje/edje_edit.eo
+
+edje_eolian_c = $(edje_eolian_files:%.eo=%.eo.c)
+edje_eolian_h = $(edje_eolian_files:%.eo=%.eo.h) \
+ $(edje_eolian_files:%.eo=%.eo.legacy.h)
+
BUILT_SOURCES += \
- lib/edje/edje_object.eo.c \
- lib/edje/edje_object.eo.h \
- lib/edje/edje_object.eo.legacy.h \
- lib/edje/edje_edit.eo.c \
- lib/edje/edje_edit.eo.h \
- lib/edje/edje_edit.eo.legacy.h
+ $(edje_eolian_c) \
+ $(edje_eolian_h)
+CLEANFILES += \
+ $(edje_eolian_c) \
+ $(edje_eolian_h)
edjeeolianfilesdir = $(datadir)/eolian/include/edje-@VMAJ@
edjeeolianfiles_DATA = \
- lib/edje/edje_object.eo \
- lib/edje/edje_edit.eo
+ $(edje_eolian_files)
EXTRA_DIST += \
${edjeeolianfiles_DATA}
@@ -40,10 +46,7 @@ lib/edje/Edje_Legacy.h \
lib/edje/Edje_Edit.h
nodist_installed_edjemainheaders_DATA = \
- lib/edje/edje_object.eo.h \
- lib/edje/edje_edit.eo.h \
- lib/edje/edje_object.eo.legacy.h \
- lib/edje/edje_edit.eo.legacy.h
+ $(edje_eolian_h)
lib_edje_libedje_la_SOURCES = \
lib/edje/edje_private.h \