diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 16:12:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 21:36:49 +0100 |
commit | 91795dfd726c76db03e5bc731608e7bff8eabacb (patch) | |
tree | 18710f82bad9ebb12b3e22a179f733bb1ea0202b /solenv | |
parent | bbe1636291cbfe3a8c2690b692740e1c823403be (diff) |
call python script with whatever is set as the python to use
Change-Id: I5dcfe7c1eca2f6388d6606521722a5fe876a9f34
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/AllLangMoTarget.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/solenv/gbuild/AllLangMoTarget.mk b/solenv/gbuild/AllLangMoTarget.mk index d3953b1163ae..8276f76a0b98 100644 --- a/solenv/gbuild/AllLangMoTarget.mk +++ b/solenv/gbuild/AllLangMoTarget.mk @@ -25,6 +25,14 @@ # 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_Output_announce,$*,$(false),RES,2) $(call gb_Helper_abbreviate_dirs,\ @@ -32,14 +40,14 @@ $(call gb_MoTarget_get_clean_target,%) : $(call gb_MoTarget_get_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) # after translate should look like this # $(call gb_Helper_abbreviate_dirs,\ # mkdir -p $(dir $@) && \ # $(MSGUNIQ) $(gb_POLOCATION)/$(LANGUAGE)/$(POLOCATION)/messages.po | $(MSGFMT) - -o $@) $(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 $@) #$(info $(call gb_MoTarget_get_target,$(1))) |