diff options
Diffstat (limited to 'makefiles/gmake/i18n.mk')
-rw-r--r-- | makefiles/gmake/i18n.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/makefiles/gmake/i18n.mk b/makefiles/gmake/i18n.mk index a153f6c..08a29e4 100644 --- a/makefiles/gmake/i18n.mk +++ b/makefiles/gmake/i18n.mk @@ -13,8 +13,10 @@ # - target: init-po # - target: merge-po # - taget: check-po +# - target: install_po +# - target: uninstall_po -.PHONY: init-po update-po all_po clean_po install_po +.PHONY: init-po update-po all_po clean_po install_po uninstall_po ifeq "$(ENABLE_NLS)" "1" @@ -72,11 +74,19 @@ all_po: $(MO_FILES) install_po: @test -z "$(GETTEXT_LANGUAGES)" || \ for lang in $(GETTEXT_LANGUAGES)""; do ( \ - echo "install po/$$lang.mo to $(localedir)/$$lang/LC_MESSAGES.." && \ + echo "installing po/$$lang.mo to $(localedir)/$$lang/LC_MESSAGES.." && \ $(INSTALL) -d -m 755 $(localedir)/$$lang/LC_MESSAGES && \ $(INSTALL) -m 644 po/$$lang.mo $(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1 \ ) done +uninstall_po: + @test -z "$(GETTEXT_LANGUAGES)" || \ + for lang in $(GETTEXT_LANGUAGES)""; do ( \ + echo "uninstalling $(localedir)/$$lang/LC_MESSAGES.." && \ + rm $(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo && \ + rmdir $(localedir)/$$lang/LC_MESSAGES || exit 1 \ + ) done + else # No NLS supported wanted, provide dummy targets @@ -88,5 +98,6 @@ check-po: all_po: clean_po: install_po: +uninstall_po: endif |