The following commit has been merged in the master branch:
commit 3e95f425157141289f0780df0da6435b8931444a
Author: Guillem Jover <[email protected]>
Date:   Wed Aug 26 17:10:47 2009 +0200

    man: Refactor common po4a options into common variables

diff --git a/man/Makefile.am b/man/Makefile.am
index b7aff18..7baa590 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -5,10 +5,14 @@ all-local: all-loc...@use_nls@
 all-local-no:
 all-local-yes: man.stamp
 
+PO4A_COMMON_OPTS = --variable builddir=$(CURDIR)
+PO4A_BUILD_OPTS = $(PO4A_COMMON_OPTS) --no-backups
+PO4A_CLEAN_OPTS = $(PO4A_COMMON_OPTS) --rm-backups --rm-translations
+
 # FIXME: Use a stamp file until po4a supports them internally.
 man.stamp:
        cd $(srcdir) && \
-       po4a --no-backups --variable builddir=$(CURDIR) po/po4a.cfg
+       po4a $(PO4A_BUILD_OPTS) po/po4a.cfg
        touch $@
 
 clean-local: clean-loc...@use_nls@
@@ -16,13 +20,12 @@ clean-local: clean-loc...@use_nls@
 clean-local-no:
 clean-local-yes:
        cd $(srcdir) && \
-       po4a --rm-backups --rm-translations --variable builddir=$(CURDIR) \
-               po/po4a.cfg
+       po4a $(PO4A_CLEAN_OPTS) po/po4a.cfg
        rm -f man.stamp
 
 update-po:
        cd $(srcdir) && \
-       po4a --no-backups --force --variable builddir=$(CURDIR) po/po4a.cfg
+       po4a $(PO4A_BUILD_OPTS) --force po/po4a.cfg
 
 # Extract the list of languages from the po4a config file.
 LINGUAS = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to