summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make/po4a.mk2
-rw-r--r--make/rules.mk1
2 files changed, 1 insertions, 2 deletions
diff --git a/make/po4a.mk b/make/po4a.mk
index 96c2013..9a09320 100644
--- a/make/po4a.mk
+++ b/make/po4a.mk
@@ -25,7 +25,7 @@ updatepo:
# Invoke from root dir of translated files
# masterdir: path to dir containing untranslated files
# pofile: path to PO file
-$(l10nfiles):
+$(l10nfiles): % : $(masterdir)/%
po4a-translate -M UTF-8 -L UTF-8 -k "$(threshold)" -f "$(fileformat)" -o markdown $(patsubst %,-m $(masterdir)/%,$@) -p "$(pofile)" -l "$@"
.PHONY: mkpot mkpo $(l10nfiles)
diff --git a/make/rules.mk b/make/rules.mk
index f0fa3f3..b267b96 100644
--- a/make/rules.mk
+++ b/make/rules.mk
@@ -74,7 +74,6 @@ $(podir)/$(3).$(2).po: $(3) $(5)
# TODO: Implement the below for automated tests, after unfuzzing the above like this:
# grep -v '^#, fuzzy$' | sed 's/^#, fuzzy,/#,/'
#
-# FIXME: needs to depend also on its masterfile
#$$(patsubst %,$(1)/%,$$($(3)_L10NFILES)): $(podir)/$(3).$(2).po
# mkdir -p $(1)
# $(MAKE) -f "$$(CURDIR)/make/po4a.mk" -C "$(1)" fileformat="$$(fileformat)" l10nfiles="$$($(3)_L10NFILES)" masterdir="$$(CURDIR)/$(3)" pofile="$(CURDIR)/$(podir)/$(3).$(locale).po" threshold=0 "$(CURDIR)/$$@"