aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-03-02 14:39:01 +0100
committerAndras Timar <atimar@suse.com>2012-03-02 14:39:01 +0100
commitcf5aa025c3a04a8ebbb9ebbab65c2a59a57aeabd (patch)
treef07be9ecdff3d6d13ebcc1d38fc322681f0d9269
parent5f9b493ab7264773f72fc7b8c42624fbfc41037f (diff)
fix build on Windows
-rw-r--r--translations/translate/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/translations/translate/Makefile b/translations/translate/Makefile
index e97299aadb2..dac744f8369 100644
--- a/translations/translate/Makefile
+++ b/translations/translate/Makefile
@@ -50,10 +50,16 @@ merge.done: $(foreach lang,$(my_languages),sdf-l10n/$(lang).sdf) sdf-l10n/qtz.sd
define lang_rule
sdf-l10n/$(1).sdf: sdf-template/en-US.sdf $(OUTDIR_FOR_BUILD)/bin/po2lo \
$(shell find $(SRCDIR)/translations/source/$(1) -name "*\.po") | sdf-l10n
+ifeq ($(OS_FOR_BUILD),WNT)
+ $(call gb_Helper_abbreviate_dirs_native, \
+ $(gb_PYTHON) $(shell cygpath -m $(OUTDIR_FOR_BUILD))/bin/po2lo --skipsource -i \
+ $(SRCDIR)/translations/source/$(1) -t $$< -o $$@ -l $(1))
+ $(echo $(gb_PYTHON))
+else
$(call gb_Helper_abbreviate_dirs_native, \
$(gb_PYTHON) $(OUTDIR_FOR_BUILD)/bin/po2lo --skipsource -i \
$(SRCDIR)/translations/source/$(1) -t $$< -o $$@ -l $(1))
-
+endif
endef
$(foreach lang,$(my_languages),$(eval $(call lang_rule,$(lang))))