aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--translations/CustomTarget_translate.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/translations/CustomTarget_translate.mk b/translations/CustomTarget_translate.mk
index 28273554e41..0bd41efcdbf 100644
--- a/translations/CustomTarget_translate.mk
+++ b/translations/CustomTarget_translate.mk
@@ -58,6 +58,7 @@ $(translations_DIR)/merge.done : \
$(WORKDIR)/CustomTarget/translations/localization_present.mk && \
touch $@)
+# TODO: remove the realpaths when we have git submodules
$(translations_DIR)/sdf-l10n/%.sdf : \
$(translations_DIR)/sdf-template/en-US.sdf \
$(OUTDIR_FOR_BUILD)/bin/po2lo \
@@ -65,11 +66,11 @@ $(translations_DIR)/sdf-l10n/%.sdf : \
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SDF,1)
$(call gb_Helper_abbreviate_dirs, \
$(gb_PYTHON) $(OUTDIR_FOR_BUILD)/bin/po2lo --skipsource -i \
- source/$* -t $< -o $@ -l $*)
+ $(realpath $(SRCDIR)/translations/source/$*) -t $< -o $@ -l $*)
define translations_make_po_deps
$(translations_DIR)/sdf-l10n/$(1).sdf : \
- $$(shell find $(SRCDIR)/translations/source/$(1) -name "*\.po")
+ $$(shell find $(realpath $(SRCDIR)/translations/source/$(1)) -name "*\.po")
endef