Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/po/Makefile.am')
-rw-r--r--main/po/Makefile.am21
1 files changed, 19 insertions, 2 deletions
diff --git a/main/po/Makefile.am b/main/po/Makefile.am
index 30e7f62590..0b44e025eb 100644
--- a/main/po/Makefile.am
+++ b/main/po/Makefile.am
@@ -1,3 +1,4 @@
+include $(top_srcdir)/xbuild.include
LC_BUILD=$(top_builddir)/build/locale
#old automake versions don't set datarootdir or localedir
@@ -7,15 +8,31 @@ FILES = $(addsuffix .po, $(ALL_LINGUAS))
GMO_FILES = $(patsubst %.po,$(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES))
MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo)
-all: $(GMO_FILES)
+all: $(GMO_FILES) post-strip-mnemonics
update-po:
$(MDTOOL_RUN) gettext-update -f:$(top_srcdir)/Main.sln
-$(GMO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: %.po
+$(GMO_FILES): $(LC_BUILD)/%/LC_MESSAGES/$(PACKAGE).mo: %.po strip-mnemonics
$(MKDIR_P) $(dir $@)
msgfmt '$<' -o '$@'
+if ENABLE_MACPLATFORM
+strip-mnemonics:
+ mkdir -p backup
+ cp *.po backup
+ $(XBUILD) "StripMnemonics/StripMnemonics.sln"
+ mono StripMnemonics.exe .
+
+post-strip-mnemonics:
+ mv backup/*.po .
+ rm -rf backup
+else
+strip-mnemonics:
+post-strip-mnemonics:
+endif
+
+
statistics:
@for LANGFILE in $(ALL_LINGUAS); do \
echo "$$LANGFILE.po:"; \