From 878c7700007390b639809a1563a39a5b1ed35e74 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 6 Jun 2011 08:46:50 -0400 Subject: [PATCH] Move xgettext invocation out of update-po target into update-pot --- Makefile.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 6157cc247..134ab7d08 100644 --- a/Makefile.in +++ b/Makefile.in @@ -147,11 +147,10 @@ sync-po: rsync -Lrtvz translationproject.org::tp/latest/sudo/ src/po/ rsync -Lrtvz translationproject.org::tp/latest/sudoers/ plugins/sudoers/po/ -update-po: +update-pot: @cd $(top_srcdir); \ for pot in $(POTFILES); do \ echo "Updating $$pot"; \ - podir=`dirname $$pot`; \ domain=`basename $$pot .pot`; \ case "$$domain" in \ sudo) cfiles="src/*c common/*c compat/*c";; \ @@ -159,6 +158,12 @@ update-po: *) echo unknown domain $$domain continue;; \ esac; \ $(XGETTEXT) $(XGETTEXT_OPTS) -d$$domain $$cfiles -o $$pot; \ + done + +update-po: update-pot + @cd $(top_srcdir); \ + for pot in $(POTFILES); do \ + podir=`dirname $$pot`; \ set -- $(LINGUAS); \ while test $$# != 0; do \ echo $(ECHO_N) "Updating $$podir/$$1.po$(ECHO_C)"; \ -- 2.40.0