forked from wbolster/plyvel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (42 loc) · 906 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
.PHONY: all cython ext doc clean test
all: cython ext
cython:
@echo
@echo "Running Cython"
@echo "=============="
@echo
cython --version
cython --cplus --fast-fail --annotate plyvel/_plyvel.pyx
ext:
@echo
@echo "Building extension"
@echo "=================="
@echo
python setup.py build_ext --inplace --force
doc:
@echo
@echo "Building documentation"
@echo "======================"
@echo
python setup.py build_sphinx
@echo
@echo Generated documentation: "file://"$$(readlink -f doc/build/html/index.html)
@echo
clean:
@echo
@echo "Cleaning generated files"
@echo "========================"
@echo
python setup.py clean
$(RM) plyvel/_plyvel.cpp plyvel/_plyvel*.so
$(RM) -r testdb/
$(RM) -r doc/build/
$(RM) -r plyvel.egg-info/
find . -name '*.py[co]' -delete
find . -name __pycache__ -delete
test: ext
@echo
@echo "Running tests"
@echo "============="
@echo
py.test