edje: make sure the po files are well-copied once
authorJean Guyomarc'h <jean@guyomarch.bzh>
Thu, 9 Mar 2017 21:17:11 +0000 (22:17 +0100)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Thu, 9 Mar 2017 22:16:16 +0000 (23:16 +0100)
src/examples/edje/Makefile.am

index 91bb1ca..9a65457 100644 (file)
@@ -86,12 +86,15 @@ EDJE_CC_FLAGS += -beta
        $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $(MO_DIR) $< $(builddir)/$(@F)
 
 text.edj: text.edc
-       @cp -a $(top_srcdir)/src/examples/edje/en_IN/ $(top_builddir)/src/examples/edje/ || true
-       @cp -a $(top_srcdir)/src/examples/edje/hi_IN/ $(top_builddir)/src/examples/edje/ || true
-       @cp -a $(top_srcdir)/src/examples/edje/ta_IN/ $(top_builddir)/src/examples/edje/ || true
-       @chmod -R +w $(top_builddir)/src/examples/edje/en_IN/ || true
-       @chmod -R +w $(top_builddir)/src/examples/edje/hi_IN/ || true
-       @chmod -R +w $(top_builddir)/src/examples/edje/ta_IN/ || true
+       @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/
        $(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)