-
Notifications
You must be signed in to change notification settings - Fork 94
/
Makefile
29 lines (21 loc) · 937 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: setup
venv/bin/activate:
virtualenv-2.7 venv
run: venv/bin/activate requirements.txt
. venv/bin/activate; python manage.py runserver
setup: venv/bin/activate requirements.txt
. venv/bin/activate; pip install -Ur requirements.txt
cd static && bower install
init: venv/bin/activate requirements.txt
. venv/bin/activate; python manage.py db upgrade
babel: venv/bin/activate
. venv/bin/activate; pybabel extract -F babel.cfg -o project/translations/messages.pot project
# lazy babel scan
lazybabel: venv/bin/activate
. venv/bin/activate; pybabel extract -F babel.cfg -k lazy_gettext -o project/translations/messages.pot project
# run:
# $ LANG=en make addlang
addlang: venv/bin/activate
. venv/bin/activate; pybabel init -i project/translations/messages.pot -d project/translations -l $(LANG)
updlang: venv/bin/activate
. venv/bin/activate; pybabel update -i project/translations/messages.pot -d project/translations