stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8ac236cff4c2910ad0f1cef710573964abe3b3ee

commit 8ac236cff4c2910ad0f1cef710573964abe3b3ee
Author: Stefan Schmidt <[email protected]>
Date:   Fri Jul 8 14:48:47 2016 +0200

    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.
---
 src/examples/edje/Makefile.am | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index f0657f4..0ff0629 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
 EDJE_CODEGEN_FLAGS = --prefix=codegen_example
 
 if ENABLE_MULTISENSE
-SND_DIR = -sd $(srcdir)
+SND_DIR = -sd $(top_srcdir)/src/examples/edje/
 endif
 
-MO_DIR = -md $(srcdir)
+MO_DIR = -md $(top_builddir)/src/examples/edje/
 
 #put here all EDCs one needs to the examples
 EDCS = \
@@ -79,6 +79,14 @@ EDJE_CC_FLAGS += -beta
 .edc.edj:
        $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< 
$(builddir)/$(@F)
 
+text.edj: text.edc
+       @cp -ua $(top_srcdir)/src/examples/edje/en_IN/ 
$(top_builddir)/src/examples/edje/
+       @cp -ua $(top_srcdir)/src/examples/edje/hi_IN/ 
$(top_builddir)/src/examples/edje/
+       @cp -ua $(top_srcdir)/src/examples/edje/ta_IN/ 
$(top_builddir)/src/examples/edje/
+       @chmod -R +w $(top_builddir)/src/examples/edje/en_IN/
+       @chmod -R +w $(top_builddir)/src/examples/edje/hi_IN/
+       @chmod -R +w $(top_builddir)/src/examples/edje/ta_IN/
+       $(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
 
 EDJS = $(EDCS:%.edc=%.edj)
 
@@ -237,6 +245,9 @@ examples: $(EXTRA_PROGRAMS) $(EDJS)
 
 clean-local:
        rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
+       rm -f hi_IN/domain_name.po
+       rm -f ta_IN/domain_name.mo
+       rm -f en_IN/domain_name.po
 
 install-examples: $(EDJS)
        $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples

-- 


Reply via email to