forked from BlueBrain/BluePyMM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (46 loc) · 1.31 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
all: install
install: clean
python -c "exec(\"import sys, pip\\nif map(int, pip.__version__.split('.')) <= [9, 0, 0]: sys.exit('Need pip version >= 9, please upgrade pip in your python environment')\")"
python setup.py sdist
pip install `ls dist/bluepymm-*.tar.gz` --upgrade
test: install_tox
tox
test3: install_tox
tox -e py3-unit-functional
unit3: install_tox
tox -e py3-unit
func3: install_tox
tox -e py3-functional
install_tox:
pip install tox
tox_clean:
rm -rf .tox
clean:
rm -rf bluepymm.egg-info
rm -rf dist
find . -name '*.pyc' -delete
rm -rf tests/examples/simple1/tmp
rm -rf tests/examples/simple1/tmp_git
rm -rf tests/examples/simple1/output
rm -rf tests/examples/simple1/output_megate
rm -rf tests/examples/simple1/hoc
rm -rf tests/tmp
rm -rf docs/build
rm -rf build
mkdir tests/tmp
simple1_git:
cd tests/examples/simple1; python build_git.py
autopep8: clean
pip install autopep8
find bluepymm -name '*.py' -exec autopep8 -i '{}' \;
doc:
pip install -q sphinx sphinx-autobuild sphinx_rtd_theme -I
sphinx-apidoc -o docs/source bluepymm
cd docs; $(MAKE) clean; $(MAKE) html
docpdf:
pip install sphinx sphinx-autobuild -I
cd docs; $(MAKE) clean; $(MAKE) latexpdf
docopen: doc
open docs/build/html/index.html
toxbinlinks:
cd ${TOX_ENVBINDIR}; find $(TOX_NRNBINDIR) -type f -exec ln -sf \{\} . \;