[Apt-listbugs-commits] [SCM] apt-listbugs development tree branch, master, updated. apt-listbugs/0.1.7-12-g1c20187

Francesco Poli (wintermute) invernomuto at paranoici.org
Wed Aug 8 10:27:23 UTC 2012


The following commit has been merged in the master branch:
commit 1c20187fa420e45a72d3f4893d5c97939aa53286
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date:   Wed Aug 8 12:24:06 2012 +0200

    separate .pot generation in Makefile
    
    A separate target was created in the Makefile for the generation
    of the .pot file, so that it is overwritten only when something
    has changed in the files it is generated from.

diff --git a/Makefile b/Makefile
index 3b41c62..ca68670 100644
--- a/Makefile
+++ b/Makefile
@@ -20,14 +20,7 @@ apt-listbugs.1: apt-listbugs
 	rd2 -r rd/rd2man-lib.rb -o apt-listbugs apt-listbugs
 
 .PHONY: update-po
-update-po:
-	xgettext --add-comments=TRANSLATORS --no-wrap \
-	         --copyright-holder="Masato Taruishi et al." \
-	         --package-name=apt-listbugs --package-version=$(VERSION) \
-	         --msgid-bugs-address=$$DEBEMAIL \
-	         --language=python \
-	         apt-listbugs lib/apt-listbugs/logic.rb \
-	         -o po/apt-listbugs.pot
+update-po: po/apt-listbugs.pot
 	for po in $(LINGUAS); do \
 	  msgmerge --no-wrap -U po/$$po.po po/apt-listbugs.pot; \
 	done
@@ -36,6 +29,15 @@ update-po:
 	  msgfmt -v po/$$po.po -o /dev/null; \
 	done
 
+po/apt-listbugs.pot: apt-listbugs lib/apt-listbugs/logic.rb
+	xgettext --add-comments=TRANSLATORS --no-wrap \
+	         --copyright-holder="Masato Taruishi et al." \
+	         --package-name=apt-listbugs --package-version=$(VERSION) \
+	         --msgid-bugs-address=$$DEBEMAIL \
+	         --language=python \
+	         apt-listbugs lib/apt-listbugs/logic.rb \
+	         -o po/apt-listbugs.pot
+
 .PHONY: call-for-translation
 call-for-translation:
 	podebconf-report-po --call --withtranslators \

-- 
apt-listbugs development tree



More information about the Apt-listbugs-commits mailing list