From bf273db496d1aeb080e517942dc5d0e078119ede Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 31 May 2008 18:38:27 +0200 Subject: Shift l10nfiles dependencies from rules.mk to po4a.mk. --- make/po4a.mk | 2 +- make/rules.mk | 1 - 2 files changed, 1 insertion(+), 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)/$$@" -- cgit v1.2.3