diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-08-04 02:20:13 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-08-04 02:20:13 +0200 |
commit | b373cc289c777a10b1411441f2c999b2f9fbc9d0 (patch) | |
tree | 08f8ecd86512ef008f3328df67fd92069c61cc0b /make | |
parent | a2d2aa9fed2cf4bb3e98bd3ccc56a64a0ce6db13 (diff) | |
parent | 52d3706fd4d7ba3425dac767d75db549fb499dc7 (diff) |
Merge branch 'master' into scs
Diffstat (limited to 'make')
-rw-r--r-- | make/rules.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/make/rules.mk b/make/rules.mk index 973af61..9961061 100644 --- a/make/rules.mk +++ b/make/rules.mk @@ -1,3 +1,6 @@ +# use markdown template for po4a, or some custom one? +HTMLTEMPLATE = text + # 1:source 2:locales define SOURCE_template $(1): $$($(1)_MODULES) $(dummy_MODULES) @@ -48,7 +51,7 @@ export PERL5LIB = $(CURDIR)/perl # 1:moduledir 2:locale 3:mastermodule 4:source define POT_template -fileformat = $(if $(filter templates,$(3)),htmltemplate,text) +fileformat = $(if $(filter templates,$(3)),$(HTMLTEMPLATE),text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POTFILES += $(podir)/$(3).pot $(3)_L10NFILES = $$(patsubst $(1)/%,%,$$(shell find $(1) -type f -name '*.$$(filetype)' | LANG=C sort)) @@ -65,7 +68,7 @@ $(foreach source,$(SOURCES),$(foreach module,$($(source)_POMODULES),$(eval $(cal # 1:moduledir 2:locale 3:mastermodule 4:source 5:originmodule define INITPO_template -fileformat = $(if $(filter templates,$(3)),htmltemplate,text) +fileformat = $(if $(filter templates,$(3)),$(HTMLTEMPLATE),text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POFILES += $(podir)/$(3).$(2).po LOCALE_L10NFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) @@ -89,7 +92,7 @@ $(foreach source,$(SOURCES),$(foreach module,$(po-init-modules),$(foreach locale # 1:moduledir 2:locale 3:mastermodule 4:source define PO_template -fileformat = $(if $(filter templates,$(3)),htmltemplate,text) +fileformat = $(if $(filter templates,$(3)),$(HTMLTEMPLATE),text) filetype = $(if $(filter templates,$(3)),tmpl,mdwn) ALL_POFILES += $(podir)/$(3).$(2).po LOCALE_L10NFILES += $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)) |