summaryrefslogtreecommitdiffstats
path: root/common/entities
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-04-29 21:14:02 +0000
committerPaul W. Frields <stickster@gmail.com>2007-04-29 21:14:02 +0000
commitcb1fb999e5cd19083fa7401a0d135e94c50045cf (patch)
tree5be29728f99c3d650a54d9c882f0a492b353ad88 /common/entities
parentca4fb71302d977c0f599d8fa4fc7ce20a7dab536 (diff)
downloadfedora-doc-utils-cb1fb999e5cd19083fa7401a0d135e94c50045cf.tar.gz
fedora-doc-utils-cb1fb999e5cd19083fa7401a0d135e94c50045cf.tar.xz
fedora-doc-utils-cb1fb999e5cd19083fa7401a0d135e94c50045cf.zip
Don't know why this isn't working, but I'm going to commit it anyway
since it will give someone else the chance to fix it.
Diffstat (limited to 'common/entities')
-rw-r--r--common/entities/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/entities/Makefile b/common/entities/Makefile
index 0b47b20..faa2f59 100644
--- a/common/entities/Makefile
+++ b/common/entities/Makefile
@@ -76,7 +76,7 @@ help::
#
define PO_template
.PHONY: po-${1}
-.PRECIOUS: ${1}.po
+.PRECIOUS: po/${1}.po
po-${1}:: po/${1}.po
po/${1}.po:: po/entities.pot
if [ ! -f po/${1}.po ]; then \
@@ -85,6 +85,10 @@ po/${1}.po:: po/entities.pot
msgmerge --update --backup=simple po/${1}.po $$<; \
fi
+postat-${1}::
+ @echo "${1}: $(shell msgfmt --stat po/${1}.po 2>&1 | \
+ sed 's@[^0-9]\+@/@g')"
+
help::
@printf ${HELPFMT} "make po-${1}" "Generate .PO file for locale '${1}'"
@printf ${HELPFMT} "make po/${1}.po" "Generate '${1}.po' file"
@@ -94,6 +98,7 @@ $(foreach L,${OTHERS},$(eval $(call PO_template,${L})))
.PHONY: po-all po
po-all po: ${foreach L,${OTHERS},po/${L}.po}
+postat: $(foreach L,${OTHERS},postat-${L})
help::
@printf ${HELPFMT} "make po-all" "Generate all .PO files"