From d877226cbe21a862d41ceb6420d0fb06e00200b5 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 6 Nov 2007 14:17:15 +0100 Subject: Fix translations target (fix dependency resolving on ALL_L10FILES and ALL_MASTEFILES) in Makefile. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1cee0d2..a365788 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ fileformat = $(if $(filter templates,$(3)),htmltemplate,text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POTFILES += $(podir)/$(3).pot $(3)_L10NFILES = $$(shell cd "$(1)" && find * -type f -name '*.$$(filetype)') -ALL_L10NFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) +ALL_MASTERFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) $(podir)/$(3).pot: $(1) cd "$(1)" && po4a-gettextize -M UTF-8 -L UTF-8 -f $$(fileformat) $$(patsubst %,-m %,$$($(3)_L10NFILES)) -p $(CURDIR)/$$@ @@ -90,6 +90,7 @@ define INITPO_template fileformat = $(if $(filter templates,$(3)),htmltemplate,text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POFILES += $(podir)/$(3).$(2).po +ALL_L10NFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) $(4)_POMODULES := $(filter-out $(3),$$($(4)_POMODULES)) $(4)_POLOCALES := $(filter-out $(2),$$($(4)_POLOCALES)) @@ -115,6 +116,7 @@ define PO_template fileformat = $(if $(filter templates,$(3)),htmltemplate,text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POFILES += $(podir)/$(3).$(2).po +ALL_L10NFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) $(podir)/$(3).$(2).po: $(3) cd "$(3)" && po4a-updatepo -M UTF-8 -f $(fileformat) $(patsubst %,-m %,$$($(3)_L10NFILES)) -p $(CURDIR)/$$@ @@ -157,6 +159,7 @@ $(foreach config,$(CONFIGS),$(eval $(call CONFIG_template,$(config)))) pot: $(ALL_POTFILES) po: $(ALL_POFILES) +$(ALL_L10NFILES): $(ALL_MASTERFILES) translations: $(ALL_L10NFILES) -- cgit v1.2.3