examples: edje: make sure we handle the various corner cases for the po files
authorStefan Schmidt <stefan@osg.samsung.com>
Mon, 25 Jul 2016 22:08:33 +0000 (00:08 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Tue, 26 Jul 2016 10:40:55 +0000 (12:40 +0200)
Delete the earlier copied files only. Handles out of tree and in tree builds.

src/examples/edje/Makefile.am

index bf79a4b..70bbb17 100644 (file)
@@ -249,6 +249,11 @@ examples: $(EXTRA_PROGRAMS) $(EDJS)
 
 clean-local:
        rm -f $(EXTRA_PROGRAMS) $(EDJS) $(CODEGEN_GENERATED)
+       if [ $(top_builddir)/ != $(top_srcdir)/  ]; then \
+               rm -f $(top_builddir)/src/examples/edje/hi_IN/domain_name.po; \
+               rm -f $(top_builddir)/src/examples/edje/ta_IN/domain_name.mo; \
+               rm -f $(top_builddir)/src/examples/edje/en_IN/domain_name.po; \
+       fi
 
 install-examples: $(EDJS)
        $(MKDIR_P) $(DESTDIR)$(datadir)/edje/examples