summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-11-06 14:17:15 +0100
committerJonas Smedegaard <dr@jones.dk>2007-11-06 14:17:15 +0100
commitd877226cbe21a862d41ceb6420d0fb06e00200b5 (patch)
tree4deb8199b1994e010721a7ab40e394cb628b9b41 /Makefile
parent60a19d884ff7aee15f2cd641182283da9c00c396 (diff)
Fix translations target (fix dependency resolving on ALL_L10FILES and ALL_MASTEFILES) in Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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)