-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
63 lines (49 loc) · 995 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Automating common tasks for SENSBIOTK development
PYTHON = python
NOSETESTS = nosetests
PYCHECKER = pychecker.sh
#
# Building
#
all: build
build:
$(PYTHON) setup.py build
#
# Cleaning
#
clean-pyc:
find . -regex ".*\.pyc" -exec rm -rf "{}" \;
clean: clean-pyc
find . -regex ".*\.so" -exec rm -rf "{}" \;
find . -regex ".*\.pyd" -exec rm -rf "{}" \;
find . -regex ".*~" -exec rm -rf "{}" \;
find . -regex ".*#" -exec rm -rf "{}" \;
rm -rf build
rm -f sensbiotk/tests/tmpdata/*.*
$(MAKE) -C doc clean
#
# Tests
#
test: build
cd sensbiotk/tests && $(NOSETESTS)
#
# Code checker
#
check:
$(PYCHECKER) 'sensbiotk/algorithms/*.py'
$(PYCHECKER) 'sensbiotk/algorithms/stride_length/*.py'
$(PYCHECKER) 'sensbiotk/calib/*.py'
$(PYCHECKER) 'sensbiotk/driver/*.py'
$(PYCHECKER) 'sensbiotk/io/*.py'
$(PYCHECKER) 'sensbiotk/tests/*.py'
$(PYCHECKER) 'examples/*/*.py'
#
# Documentation
#
doc: build
cd doc && make html
#
# Installation
#
install:
$(PYTHON) setup.py install