-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 804 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 804 Bytes
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
# Target
TARGET_FILE=.target
ifeq ($(wildcard $(TARGET_FILE) ),$(TARGET_FILE))
TARGET?=$(shell cat $(TARGET_FILE))
else
TARGET?=development
endif
VIRTUALENV_BINARY?=virtualenv
VIRTUALENV_PYTHON_BINARY?=python
PYTHON_BINARY=./bin/python
PIP_BINARY=./bin/pip
MANAGEPY_BINARY=$(PYTHON_BINARY) manage.py
all: requirements
virtualenv:
test -x $(PYTHON_BINARY) || $(VIRTUALENV_BINARY) --distribute --python $(VIRTUALENV_PYTHON_BINARY) .
requirements: virtualenv
$(PIP_BINARY) install -r requirements/base.txt
$(PIP_BINARY) install -r requirements/$(TARGET).txt
test: TARGET=test
test: requirements
$(MANAGEPY_BINARY) test --settings=devisio.settings.test
clean:
rm -rf {lib,include,bin,share,local}
# DEBUG - command to show selected target
show-target:
@echo "Current target is '$(TARGET)'."