diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-02-18 23:47:13 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-02-18 23:47:13 +0100 |
commit | f9c7a9baa16d4d6a8e912ad8a69bf1c9605d4256 (patch) | |
tree | 8f079700552fd0d63d922bd2a606140ee1b67aef | |
parent | 31e1796579331a8fa6c5bbfb8e307bc35d79792d (diff) |
Avoid updating po files when initializing: can't do both at once.
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |