jayji pushed a commit to branch master.

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

commit c57daa030d27c954a06c18dbbe8ff74b800c39d6
Author: Jean Guyomarc'h <[email protected]>
Date:   Sat Mar 11 00:02:41 2017 +0100

    edje/examples: don't alter source directory
    
    We would have removed files from the source directory before... oops...
---
 src/examples/edje/Makefile.am | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 9a65457..961009d 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -86,15 +86,17 @@ EDJE_CC_FLAGS += -beta
        $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< 
$(builddir)/$(@F)
 
 text.edj: text.edc
-       @rm -rf $(top_builddir)/src/examples/edje/en_IN/
-       @rm -rf $(top_builddir)/src/examples/edje/hi_IN/
-       @rm -rf $(top_builddir)/src/examples/edje/ta_IN/
-       @cp -a $(top_srcdir)/src/examples/edje/en_IN/ 
$(top_builddir)/src/examples/edje/en_IN/
-       @cp -a $(top_srcdir)/src/examples/edje/hi_IN/ 
$(top_builddir)/src/examples/edje/hi_IN/
-       @cp -a $(top_srcdir)/src/examples/edje/ta_IN/ 
$(top_builddir)/src/examples/edje/ta_IN/
-       @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/
+       @if [ "x$(top_builddir)" != "x$(top_srcdir)" ]; then \
+         rm -rf $(top_builddir)/src/examples/edje/en_IN/; \
+         rm -rf $(top_builddir)/src/examples/edje/hi_IN/; \
+         rm -rf $(top_builddir)/src/examples/edje/ta_IN/; \
+         cp -a $(top_srcdir)/src/examples/edje/en_IN/ 
$(top_builddir)/src/examples/edje/en_IN/; \
+         cp -a $(top_srcdir)/src/examples/edje/hi_IN/ 
$(top_builddir)/src/examples/edje/hi_IN/; \
+         cp -a $(top_srcdir)/src/examples/edje/ta_IN/ 
$(top_builddir)/src/examples/edje/ta_IN/; \
+         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/; \
+        fi
        $(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)

-- 


Reply via email to