.PHONY: clean doc perms i18n

all: tests clean perms i18n

perms:
	chmod -R go+r *

tests:
	cd tests ; ./runtests.py
	
doc:
	happydoc -d doc/api *.py

i18n:
	msgfmt -v i18n/CPSSkins/en.po -o i18n/cpsskins-en.mo
	msgfmt -v i18n/CPSSkins/fr.po -o i18n/cpsskins-fr.mo
	msgfmt -v i18n/CPSSkins/sv.po -o i18n/cpsskins-sv.mo

clean:
	find . -name '*~' | xargs rm -f
	find . -name '*pyc' | xargs rm -f
	find . -name '.log' | xargs rm -f
	rm -rf doc/api

