-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
30 lines (23 loc) · 932 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
30
.PHONY: help clean server shell reset extract-messages
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean delete all compiled python and backup files"
@echo " server start the development server"
@echo " shell start a development shell"
@echo " extract-messages update the pot file"
@echo " update-translations update the translations"
@echo " compile-translations compile all translation files"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
server:
@(python manage.py runserver)
shell:
@(python manage.py shell)
extract-messages:
pybabel extract -F babel.ini -o lodgeit/i18n/messages.pot .
update-translations:
pybabel update -ilodgeit/i18n/messages.pot -dlodgeit/i18n -Dmessages
compile-translations:
pybabel compile -dlodgeit/i18n --statistics