When support for translated languages was enabled, the localisation files were installed, but make uninstall did not take care to remove them. This patch fixes this by properly removing them.
Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- WINGs/po/Makefile.am | 6 ++++++ WPrefs.app/po/Makefile.am | 6 ++++++ po/Makefile.am | 6 ++++++ util/po/Makefile.am | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/WINGs/po/Makefile.am b/WINGs/po/Makefile.am index 7c5d6ce..133f244 100644 --- a/WINGs/po/Makefile.am +++ b/WINGs/po/Makefile.am @@ -100,6 +100,12 @@ install-data-local: $(CATALOGS) fi; \ done +uninstall-local: + for n in $(CATALOGS) ; do \ + l=`basename $$n .mo`; \ + rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \ + done + # Create a 'silent rule' for our make check the same way automake does AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V)) am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY)) diff --git a/WPrefs.app/po/Makefile.am b/WPrefs.app/po/Makefile.am index 4fad9aa..c132a8c 100644 --- a/WPrefs.app/po/Makefile.am +++ b/WPrefs.app/po/Makefile.am @@ -66,6 +66,12 @@ install-data-local: $(CATALOGS) fi; \ done +uninstall-local: + for n in $(CATALOGS) ; do \ + l=`basename $$n .mo`; \ + rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \ + done + # Create a 'silent rule' for our make check the same way automake does AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V)) am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY)) diff --git a/po/Makefile.am b/po/Makefile.am index 93f5f47..815c1d1 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -95,6 +95,12 @@ install-data-local: $(CATALOGS) fi; \ done +uninstall-local: + for n in $(CATALOGS) ; do \ + l=`basename $$n .mo`; \ + rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \ + done + # Create a 'silent rule' for our make check the same way automake does AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V)) am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY)) diff --git a/util/po/Makefile.am b/util/po/Makefile.am index 0d72d00..4ca002c 100644 --- a/util/po/Makefile.am +++ b/util/po/Makefile.am @@ -40,3 +40,9 @@ install-data-local: $(CATALOGS) $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \ fi; \ done + +uninstall-local: + for n in $(CATALOGS) ; do \ + l=`basename $$n .mo`; \ + rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \ + done -- 2.1.4 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.