summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-08 18:10:58 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-08 18:52:08 +0100
commit967391dca2fd8f30e38598433b2d2153020988d5 (patch)
treef4d1b3ba46dc32c2585bc009d1accf9abb8e26fd /solenv
parent8c766a4993e56bd453dfe18b36c5ea76915afe1c (diff)
gbuild: AllLangResTarget: avoid spurious rebuilds on missing translation
... if the darn files are allowed to be missing, use wildcard to avoid dependencies on them. Change-Id: I5232efcb17342d0b2a1e909da6449b08c4148245
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/AllLangResTarget.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/gbuild/AllLangResTarget.mk b/solenv/gbuild/AllLangResTarget.mk
index 24bd656f4d33..c1bf16a4aced 100644
--- a/solenv/gbuild/AllLangResTarget.mk
+++ b/solenv/gbuild/AllLangResTarget.mk
@@ -62,8 +62,10 @@ $(call gb_SrsPartMergeTarget_get_target,%) : $(SRCDIR)/% $(gb_Helper_MISCDUMMY)
$(call gb_SrsPartMergeTarget__command,$@,$*,$<),\
mkdir -p $(dir $@) && cp $< $@)
+# translations are optional - use "wildcard" to avoid spurious re-builds
+# when they don't exist
define gb_SrsPartMergeTarget_SrsPartMergeTarget
-$(call gb_SrsPartMergeTarget__SrsPartMergeTarget_impl,$(1),$(if $(2),$(foreach lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po)))
+$(call gb_SrsPartMergeTarget__SrsPartMergeTarget_impl,$(1),$(if $(2),$(wildcard $(foreach lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $(1))).po))))
endef
define gb_SrsPartMergeTarget__SrsPartMergeTarget_impl