From f9c7a9baa16d4d6a8e912ad8a69bf1c9605d4256 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 18 Feb 2008 23:47:13 +0100 Subject: Avoid updating po files when initializing: can't do both at once. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3