summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-02-18 23:47:13 +0100
committerJonas Smedegaard <dr@jones.dk>2008-02-18 23:47:13 +0100
commitf9c7a9baa16d4d6a8e912ad8a69bf1c9605d4256 (patch)
tree8f079700552fd0d63d922bd2a606140ee1b67aef
parent31e1796579331a8fa6c5bbfb8e307bc35d79792d (diff)
Avoid updating po files when initializing: can't do both at once.
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e7ef13c..9ccb909 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,10 @@ $$(patsubst %,$(1)/%,$$($(3)_L10NFILES)): $(podir)/$(3).$(2).po
mkdir -p $(1)
cd "$(1)" && PERL5LIB="$(CURDIR)/perl" po4a-translate -M UTF-8 -L UTF-8 -k 100 -f $(fileformat) -o markdown $$(patsubst $(1)/%,-m $(CURDIR)/$(3)/%,$$@) -p $(CURDIR)/$(podir)/$(3).$(locale).po -l $(CURDIR)/$$@
endef
+# Only update if not initializing - can't do both at once
+ifeq ($(po-init-modules),)
$(foreach source,$(SOURCES),$(foreach module,$($(source)_POMODULES),$(foreach locale,$($(source)_POLOCALES),$(eval $(call PO_template,$(l10ndir),$(locale),$(module),$(source))))))
+endif