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


Őry Máté committed
4 5
default: migrate collectstatic mo restart

Őry Máté committed
6 7
pulldef: pull default
pull:
Őry Máté committed
8 9 10 11
	git pull

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

migrate:
	./manage.py migrate

collectstatic:
	./manage.py collectstatic --noinput

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

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