summaryrefslogtreecommitdiff
path: root/src/examples/edje/Makefile.am
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-07-08 14:48:47 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-07-25 18:00:42 +0200
commit8ac236cff4c2910ad0f1cef710573964abe3b3ee (patch)
tree12e73c993b716215449a66ae94d01bd8d945485f /src/examples/edje/Makefile.am
parentd922a556b4f6ee8310df6a7b3858152c55b7ca68 (diff)
examples: edje: fix build of edje files with translation within distcheck
The edje text example covers the translation functionality which need the mo and po files during edje_cc compilation. Further more the folder need to be writable to create the new mo/po files. We need to ensure that this is the case during a distcheck which is read only on the source tree.
Diffstat (limited to 'src/examples/edje/Makefile.am')
-rw-r--r--src/examples/edje/Makefile.am15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index f0657f4cb5..0ff062929a 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -6,10 +6,10 @@ EDJE_CODEGEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/edje/edje_codegen
6EDJE_CODEGEN_FLAGS = --prefix=codegen_example 6EDJE_CODEGEN_FLAGS = --prefix=codegen_example
7 7
8if ENABLE_MULTISENSE 8if ENABLE_MULTISENSE
9SND_DIR = -sd $(srcdir) 9SND_DIR = -sd $(top_srcdir)/src/examples/edje/
10endif 10endif
11 11
12MO_DIR = -md $(srcdir) 12MO_DIR = -md $(top_builddir)/src/examples/edje/
13 13
14#put here all EDCs one needs to the examples 14#put here all EDCs one needs to the examples
15EDCS = \ 15EDCS = \
@@ -79,6 +79,14 @@ EDJE_CC_FLAGS += -beta
79.edc.edj: 79.edc.edj:
80 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< $(builddir)/$(@F) 80 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< $(builddir)/$(@F)
81 81
82text.edj: text.edc
83 @cp -ua $(top_srcdir)/src/examples/edje/en_IN/ $(top_builddir)/src/examples/edje/
84 @cp -ua $(top_srcdir)/src/examples/edje/hi_IN/ $(top_builddir)/src/examples/edje/
85 @cp -ua $(top_srcdir)/src/examples/edje/ta_IN/ $(top_builddir)/src/examples/edje/
86 @chmod -R +w $(top_builddir)/src/examples/edje/en_IN/
87 @chmod -R +w $(top_builddir)/src/examples/edje/hi_IN/
88 @chmod -R +w $(top_builddir)/src/examples/edje/ta_IN/
89 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $(top_srcdir)/src/examples/edje/text.edc $(top_builddir)/src/examples/edje/text.edj
82 90
83EDJS = $(EDCS:%.edc=%.edj) 91EDJS = $(EDCS:%.edc=%.edj)
84 92
@@ -237,6 +245,9 @@ examples: $(EXTRA_PROGRAMS) $(EDJS)
237 245
238clean-local: 246clean-local:
239 rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED) 247 rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
248 rm -f hi_IN/domain_name.po
249 rm -f ta_IN/domain_name.mo
250 rm -f en_IN/domain_name.po
240 251
241install-examples: $(EDJS) 252install-examples: $(EDJS)
242 $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples 253 $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples