forked from pengutronix/aiohttp-json-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 823 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
31
32
33
34
35
36
37
PYTHON=python3.5
PYTHON_VENV=env
$(PYTHON_VENV)/.created: REQUIREMENTS.dev.txt
rm -rf $(PYTHON_VENV) && \
$(PYTHON) -m venv $(PYTHON_VENV) && \
. $(PYTHON_VENV)/bin/activate && \
pip install -r ./REQUIREMENTS.dev.txt && \
date > $(PYTHON_VENV)/.created
env: $(PYTHON_VENV)/.created
clean:
rm -rf $(PYTHON_VENV)
edit: env
. $(PYTHON_VENV)/bin/activate && \
$$EDITOR
shell: env
. $(PYTHON_VENV)/bin/activate && \
ipython
django-migrate: env
rm -rf tests/django_project/db.sqlite3 && \
. $(PYTHON_VENV)/bin/activate && \
DJANGO_SETTINGS_MODULE=django_project.settings django-admin migrate
django-shell: env
. $(PYTHON_VENV)/bin/activate && \
DJANGO_SETTINGS_MODULE=django_project.settings django-admin shell
dev-server: env
. $(PYTHON_VENV)/bin/activate && \
dev-server/dev-server
.PHONY: dev-server