aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Emotion.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_Emotion.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_Emotion.am')
-rw-r--r--src/Makefile_Emotion.am21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/Makefile_Emotion.am b/src/Makefile_Emotion.am
index 5449f8107d..242a671081 100644
--- a/src/Makefile_Emotion.am
+++ b/src/Makefile_Emotion.am
@@ -1,13 +1,23 @@
### Library
+emotion_eolian_files = \
+ lib/emotion/emotion_object.eo
+
+emotion_eolian_c = $(emotion_eolian_files:%.eo=%.eo.c)
+emotion_eolian_h = $(emotion_eolian_files:%.eo=%.eo.h) \
+ $(emotion_eolian_files:%.eo=%.eo.legacy.h)
+
BUILT_SOURCES += \
- lib/emotion/emotion_object.eo.c \
- lib/emotion/emotion_object.eo.h \
- lib/emotion/emotion_object.eo.legacy.h
+ $(emotion_eolian_c) \
+ $(emotion_eolian_h)
+
+CLEANFILES += \
+ $(emotion_eolian_c) \
+ $(emotion_eolian_h)
emotioneolianfilesdir = $(datadir)/eolian/include/emotion-@VMAJ@
emotioneolianfiles_DATA = \
- lib/emotion/emotion_object.eo
+ $(emotion_eolian_files)
EXTRA_DIST += \
${emotioneolianfiles_DATA}
@@ -21,8 +31,7 @@ dist_installed_emotionmainheaders_DATA = lib/emotion/Emotion.h \
lib/emotion/Emotion_Eo.h
nodist_installed_emotionmainheaders_DATA = \
- lib/emotion/emotion_object.eo.h \
- lib/emotion/emotion_object.eo.legacy.h
+ $(emotion_eolian_h)
# libemotion.la
lib_emotion_libemotion_la_SOURCES = \