Kaydet (Commit) 91795dfd authored tarafından Caolán McNamara's avatar Caolán McNamara

call python script with whatever is set as the python to use

Change-Id: I5dcfe7c1eca2f6388d6606521722a5fe876a9f34
üst bbe16362
...@@ -25,6 +25,14 @@ ...@@ -25,6 +25,14 @@
# MoTarget # MoTarget
ifeq ($(SYSTEM_PYTHON),)
gb_Python_EXECUTABLE := $(gb_Python_INSTALLED_EXECUTABLE)
gb_Python_DEPS ?= $(call gb_Package_get_target,python3) $(call gb_Package_get_target,python_shell)
else
gb_Python_EXECUTABLE := $(PYTHON_FOR_BUILD)
gb_Python_DEPS :=
endif
$(call gb_MoTarget_get_clean_target,%) : $(call gb_MoTarget_get_clean_target,%) :
$(call gb_Output_announce,$*,$(false),RES,2) $(call gb_Output_announce,$*,$(false),RES,2)
$(call gb_Helper_abbreviate_dirs,\ $(call gb_Helper_abbreviate_dirs,\
...@@ -32,14 +40,14 @@ $(call gb_MoTarget_get_clean_target,%) : ...@@ -32,14 +40,14 @@ $(call gb_MoTarget_get_clean_target,%) :
$(call gb_MoTarget_get_target,$*) \ $(call gb_MoTarget_get_target,$*) \
$(call gb_MoTarget_get_install_target,$*)) $(call gb_MoTarget_get_install_target,$*))
$(call gb_MoTarget_get_target,%) : $(gb_Helper_MISCDUMMY) $(call gb_MoTarget_get_target,%) : $(gb_Helper_MISCDUMMY) $(gb_Python_DEPS)
$(call gb_Output_announce,$*,$(true),MO,2) $(call gb_Output_announce,$*,$(true),MO,2)
# after translate should look like this # after translate should look like this
# $(call gb_Helper_abbreviate_dirs,\ # $(call gb_Helper_abbreviate_dirs,\
# mkdir -p $(dir $@) && \ # mkdir -p $(dir $@) && \
# $(MSGUNIQ) $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@) # $(MSGUNIQ) $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@)
$(call gb_Helper_abbreviate_dirs,\ $(call gb_Helper_abbreviate_dirs,\
mkdir -p $(dir $@) && $(SRCDIR)/solenv/bin/interim-update-module-for-gettext $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION) $@.po && \ mkdir -p $(dir $@) && $(gb_Python_EXECUTABLE) $(SRCDIR)/solenv/bin/interim-update-module-for-gettext $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION) $@.po && \
$(MSGUNIQ) --force-po $@.po | $(MSGFMT) - -o $@) $(MSGUNIQ) --force-po $@.po | $(MSGFMT) - -o $@)
#$(info $(call gb_MoTarget_get_target,$(1))) #$(info $(call gb_MoTarget_get_target,$(1)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment