]> granicus.if.org Git - sudo/commitdiff
Move xgettext invocation out of update-po target into update-pot
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Jun 2011 12:46:50 +0000 (08:46 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 6 Jun 2011 12:46:50 +0000 (08:46 -0400)
Makefile.in

index 6157cc2474227a6b1e80a3c484ca09fe6ab72442..134ab7d0873578cc86d0bfc338205fb08a7cded0 100644 (file)
@@ -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)"; \