-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (27 loc) · 860 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
install: requirements
( \
source env/bin/activate; \
sudo apt-get install -y graphviz libgraphviz-dev pkg-config; \
pip install -r test-requirements.txt; \
pip install -r requirements.txt; \
)
test: install
source env/bin/activate; \
tox -r
show-docs: install
source env/bin/activate; \
tox -e docs
cd dist/docs && python3 -m http.server
run: install
source env/bin/activate; \
python setup.py install; \
vmshepherd -c config/settings.example.yaml;
requirements:
@which virtualenv &>/dev/null || (echo 'ERROR: Install virtualenv.' && exit 1)
@which python3 &>/dev/null || (echo 'ERROR: Install python 3.' && exit 1)
@test -d env || virtualenv -p python3 env
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -rf dist build htmlcov .tox
.PHONY: install test show-docs run requirements clean