Makefile 576 Bytes
Newer Older
1 2 3
SHELL := /bin/bash


Őry Máté committed
4 5 6 7 8 9 10
default: migrate collectstatic mo restart

pull: default
	git pull

po:
	for i in */; do cd $$i; ../manage.py makemessages --all || true; cd ..; done
11
	for i in */; do cd $$i; ../manage.py makemessages --all -d djangojs || true; cd ..; done
12 13 14 15 16 17 18 19

migrate:
	./manage.py migrate

collectstatic:
	./manage.py collectstatic --noinput

mo:
Őry Máté committed
20
	for i in */locale/*/*/*.po;    do echo -ne "$$i:\t"; msgfmt --statistics $$i;done
21
	for i in */; do cd $$i; ls locale &>/dev/null && ../manage.py compilemessages || true; cd ..; done
22 23 24

restart:
	sudo /etc/init.d/apache2 reload