Makefile 840 Bytes
Newer Older
Christophe Siraut's avatar
Christophe Siraut committed
1
APPS := meetingpoll registration_templates nuages_templates
2

3 4 5 6 7
clean:
	find . -name "*.pyc" -exec rm {} \;
	find . -name "*~" -exec rm {} \;
	find . -name ".svn" -exec rm -r {} \;

Christophe Siraut's avatar
Christophe Siraut committed
8 9 10 11 12 13
update:
	git pull --rebase
	python manage.py syncdb --noinput
	python manage.py collectstatic --noinput
	chown -R www-data .

14
translation:
15 16 17 18 19 20
	cwd=`pwd`;\
	for app in ${APPS}; do\
		cd $$cwd/$$app;\
		django-admin makemessages -a;\
		django-admin compilemessages;\
	done
Christophe Siraut's avatar
Christophe Siraut committed
21

22 23 24 25 26 27
new_translation:
	echo Creating translation files for ${language}
	for app in ${APPS}; do\
		cd $$cwd/$$app;\
		django-admin makemessages -l ${language};\
	done
28 29 30 31 32

test:
	python-coverage run --source='.' manage.py test
	python-coverage report

Christophe Siraut's avatar
Christophe Siraut committed
33 34 35
build:
	python setup.py --command-packages=stdeb.command debianize
	git-buildpackage  -us -uc --git-upstream-tree=branch --git-upstream-branch=master