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

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
Cleanup    
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:
Christophe Siraut's avatar
Christophe Siraut committed
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
Cleanup    
Christophe Siraut committed
21

Christophe Siraut's avatar
Christophe Siraut committed
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
Christophe Siraut's avatar
Christophe Siraut committed
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