-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
36 lines (28 loc) · 906 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
VIRTUALENV = virtualenv --python /usr/bin/python3
VENV := $(shell echo $${VIRTUAL_ENV-.venv})
PYTHON = $(VENV)/bin/python
DEV_STAMP = $(VENV)/.dev_env_installed.stamp
INSTALL_STAMP = $(VENV)/.install.stamp
.IGNORE: clean
.PHONY: all install virtualenv tests
OBJECTS = .venv .coverage
all: install
install: $(INSTALL_STAMP)
$(INSTALL_STAMP): $(PYTHON) setup.py
$(VENV)/bin/pip install -r requirements/base.txt
touch $(INSTALL_STAMP)
install-dev: $(INSTALL_STAMP) $(DEV_STAMP)
$(DEV_STAMP): $(PYTHON) requirements/base.txt requirements/dev.txt
$(VENV)/bin/pip install -r requirements/dev.txt
touch $(DEV_STAMP)
virtualenv: $(PYTHON)
$(PYTHON):
$(VIRTUALENV) $(VENV)
@echo "Don't forget to set configuration environment variables."
tests-once: install-dev
$(VENV)/bin/python manage.py test
tests:
tox
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -type d -exec rm -fr {} \;