fedora-comps/po/Makefile

30 lines
556 B
Makefile
Raw Normal View History

XMLFILES=$(addprefix ../, $(shell cat POTFILES.in))
POFILES=$(wildcard *.po)
2006-02-26 20:30:25 +00:00
# intltool hack
top_srcdir=..
all:
refresh-po: comps.pot $(POFILES)
%.po: comps.pot
@if msgmerge $@ comps.pot > $@.new ; then \
echo "msgmerge of $@ succeeded" ; \
mv $@.new $@ ; \
msgfmt -o /dev/null --statistics $@ ; \
else \
echo "msgmerge of $@ failed" ; \
rm -f $@.new ; \
fi
comps.pot: $(XMLFILES)
2006-02-26 20:30:25 +00:00
intltool-update --pot --gettext-package=comps
2006-02-26 20:30:25 +00:00
report:
for cat in *.po; do \
echo -n "$$cat: "; \
msgfmt -v --statistics -o /dev/null $$cat; \
done