forked from Infinidat/pyvisdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (37 loc) · 1.33 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
PYTHON?=./bin/python
SETUPFLAGS=
TESTRUNNER=$(shell which nosetests)
API_DOC_DIR=docs/html
PROJ_DIR=`pwd`
VERSION=0.9
all: build
build:
python ./bootstrap.py -d
./bin/buildout
test:
PYTHONPATH=. $(PYTHON) ./bin/test
install:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) install
clean:
-find . \( -name '*.o' -o -name '*.so' -o -name '*.py[cod]' -o -name '*.dll' \) -exec rm -f {} \;
-rm -rf pyvisdk.egg-info eggs develop-eggs parts build dist docs/html
update_version:
sed -i "s/^__version__ = .*/__version__ = \'$(VERSION)\'/g" pyvisdk/__init__.py
release: clean build docs deploy_docs
echo "============================================================"
echo " Release complete "
echo "============================================================"
help:
@echo 'Commonly used make targets:'
@echo ' all - build program and documentation'
@echo ' test - run all tests in the automatic test suite'
@echo ' docs - generate all the documentation'
@echo ' install - Install the python module'
@echo ' clean - remove files created by other targets'
@echo ' (except installed files or dist source tarball)'
docs:
rm -rf $(API_DOC_DIR)
./bin/docs
deploy_docs:
ghp-import -m "Updated documentation for version $(VERSION)" -p docs/build/html
.PHONY: help all build test clean docs