2 python2.5 setup.py build
4 rm -rf ./locale ./po/templates.pot
5 python2.5 setup.py clean --all
7 python2.5 setup.py install --root $(DESTDIR)
10 POTFILES=src/multilist $(wildcard src/multilistclasses/*.py)
12 update_po: po/templates.pot
13 @for lang in $(basename $(notdir $(wildcard po/*.po))); do \
14 msgmerge -U --strict --no-wrap po/$$lang.po po/templates.pot; \
17 po/templates.pot: $(POTFILES)
18 xgettext --language=Python --strict --no-wrap --output=$@ $(POTFILES)
21 @for lang in $(basename $(notdir $(wildcard po/*.po))); do \
22 mkdir -p locale/$$lang/LC_MESSAGES; \
23 msgfmt --statistics -c -o locale/$$lang/LC_MESSAGES/$(TEXT_DOMAIN).mo po/$$lang.po; \
26 .PHONES: update_po build_mo