all:
	echo "Nothing here."

clean:
	rm -f *.pyc *.pyo templates/*.pyc
	rm -rf __pycache__ */__pycache__

i18n:	i18n/sk/LC_MESSAGES/datatypes.po
	joe i18n/sk/LC_MESSAGES/datatypes.po

i18n/messages.pot:	*.py templates/*.mak
	#pygettext.py -a -p i18n/ *.py
	pybabel extract -F babel.cfg -o $@ . --keywords="_ l_"

i18n/sk/LC_MESSAGES/datatypes.po:	i18n/messages.pot
	msgmerge -U --backup=none $@ $<

i18n/sk/LC_MESSAGES/datatypes.mo:	i18n/sk/LC_MESSAGES/datatypes.po
	msgfmt.py $<

.PHONY:	clean i18n
