forked from jplusplus/v2.jplusplus.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 1.46 KB
/
Makefile
File metadata and controls
42 lines (32 loc) · 1.46 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
# Project : Journalism++ v2
# -----------------------------------------------------------------------------
# Author : Edouard Richard <edou4rd@gmail.com>
# -----------------------------------------------------------------------------
# License : GNU General Public License
# -----------------------------------------------------------------------------
PYC = $(wildcard *.pyc */*.pyc sources/*/*.pyc sources/*/*/*.pyc sources/*/*/*/*.pyc sources/*/*/*/*/*.pyc)
CACHE = $(wildcard staticfiles/CACHE)
RM = rm -fr
VENV = `pwd`/.env
VIRTUALENV = virtualenv
PIP = pip
PYTHON = python
run: clean
. `pwd`/.env ; $(PYTHON) manage.py runserver
clean:
$(RM) $(PYC)
$(RM) $(CACHE)
install: install_dependances init_db
install_dependances:
$(VIRTUALENV) venv --no-site-packages --distribute --prompt=jppv2
. $(VENV) ; $(PIP) install -r requirements_core.txt
dump_data:
. $(VENV) ; $(PYTHON) manage.py dumpdata cms djangocms_style taggit djangocms_column djangocms_text_ckeditor djangocms_file djangocms_flash djangocms_googlemap djangocms_inherit djangocms_link djangocms_picture djangocms_teaser djangocms_video jplusplus --indent 4 --natural > sources/jplusplus/fixtures/initial_data.json
init_db:
. $(VENV) ; $(PYTHON) manage.py syncdb
. $(VENV) ; $(PYTHON) manage.py migrate
update_i18n:
. $(VENV) ; django-admin.py makemessages -a -i "venv/*"
compile_i18n:
. $(VENV) ; django-admin.py compilemessages
# EOF