-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (39 loc) · 1.77 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
49
50
51
.PHONY: help init-submodule update-submodule build clean flake8 test coverage doc doc-execute-notebook push-doc open-doc
help:
@echo "Please use make <target> where <target> is one of"
@echo " init-submodule : init and pull all submodules"
@echo " update-submodule : update all submodules"
@echo " build : build extensions (not needed yet)"
@echo " clean : clean current repository"
@echo " flake8 : run flake8 to check PEP8"
@echo " test : run tests"
@echo " coverage : run tests and check code coverage"
@echo " doc : build dev documentation"
@echo " doc-execute-notebook : execute doc ipython notebook and build dev documentation"
@echo " push-doc : push dev documentation to http://scikit-tracker.org/dev/"
init-submodule:
git submodule update --init --recursive
update-submodule:
git submodule foreach git pull origin master
build:
python setup.py build_ext --inplace
clean:
find . -name "*.so" -exec rm -rf {} \;
find . -name "*.pyc" -exec rm -rf {} \;
find . -depth -name "__pycache__" -type d -exec rm -rf '{}' \;
rm -rf build/ dist/ scikit_tracker.egg-info/
flake8:
flake8 --exclude "test_*" --max-line-length=100 --count --statistics --exit-zero sktracker/
test:
nosetests sktracker -v --logging-clear-handlers
coverage:
nosetests sktracker --with-coverage --cover-package=sktracker -v --logging-clear-handlers
doc:
cd doc/ && make clean && make api && make notebooks && make html
doc-execute-notebook:
cd doc/ && make clean && make api && make notebooks-execute && make html
push-doc:
cd doc/ && python gh-pages.py
cd doc/gh-pages/ && git push origin gh-pages && cd ../../
open-doc:
xdg-open doc/build/html/index.html