From 740c812476cfe5a615e15111da5a921771a973da Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Tue, 20 Jan 2015 22:04:07 +0100 Subject: [PATCH] make: remove installed translations when performing Uninstall 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 --- 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 7c5d6ce3..133f2442 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 4fad9aac..c132a8cd 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 93f5f47d..815c1d1b 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 0d72d00d..4ca002c3 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