aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--translations/makefile.mk24
1 files changed, 13 insertions, 11 deletions
diff --git a/translations/makefile.mk b/translations/makefile.mk
index 229cfbb4a53..fd0f40dc782 100644
--- a/translations/makefile.mk
+++ b/translations/makefile.mk
@@ -48,7 +48,12 @@ TARGET=translations_merge
.INCLUDE : target.mk
-.IF "$(SYSTEM_TRANSLATE_TOOLKIT)" != "YES"
+.IF "$(SYSTEM_TRANSLATE_TOOLKIT)" == "YES"
+
+OO2PO=oo2po
+PO2OO=po2oo
+
+.ELSE # "$(SYSTEM_TRANSLATE_TOOLKIT)" == "YES"
OO2PO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/oo2po
PO2OO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/po2oo
@@ -56,21 +61,18 @@ PO2OO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) $(SOLARBINDIR)/po2oo
TRANSLATE_TOOLKIT_PYTHONPATH=$(SOLARLIBDIR)$/translate_toolkit
.IF "$(SYSTEM_PYTHON)" == "YES"
PYTHONPATH:=$(TRANSLATE_TOOLKIT_PYTHONPATH)
-.ELSE
+.ELSE # "$(SYSTEM_PYTHON)" == "YES"
.IF "$(GUI)"=="WNT"
-PYTHONPATH:=$(SOLARLIBDIR)$/python;$(TRANSLATE_TOOLKIT_PYTHONPATH)
+PYTHONPATH:=$(SOLARLIBDIR)$/python;$(SOLARLIBDIR)$/python/lib-dynload;$(TRANSLATE_TOOLKIT_PYTHONPATH)
.ELSE # "$(GUI)"=="WNT"
-PYTHONPATH:=$(SOLARLIBDIR)$/python:$(TRANSLATE_TOOLKIT_PYTHONPATH)
+PYTHONPATH:=$(SOLARLIBDIR)$/python:$(SOLARLIBDIR)$/python/lib-dynload:$(TRANSLATE_TOOLKIT_PYTHONPATH)
.ENDIF # "$(GUI)"=="WNT"
-.ENDIF
+PYTHONHOME:=$(SOLARVER)/$(INPATH)
+.EXPORT: PYTHONHOME
+.ENDIF # "$(SYSTEM_PYTHON)" == "YES"
.EXPORT: PYTHONPATH
-.ELSE # "$(SYSTEM_PYTHON)"!="YES"
-
-OO2PO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) oo2po
-PO2OO=$(AUGMENT_LIBRARY_PATH) $(WRAPCMD) po2oo
-
-.ENDIF # "$(SYSTEM_PYTHON)"!="YES"
+.ENDIF # "$(SYSTEM_TRANSLATE_TOOLKIT)" == "YES"
.IF "$(WITH_LANG)" == "ALL"
all_languages:=$(shell cd $(PRJ)/source && ls -1)