forked from WojciechMula/pyahocorasick
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
67 lines (50 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.SUFFIXES:
.PHONY: test clean valgrind
export PYTHONPATH := .:$(PYTHONPATH):$(PATH)
DEPS=*.c \
*.h \
setup.py \
unittests.py
test: stamp/regression_py2 stamp/regression_py3
stamp/build_py2: $(DEPS)
python2 setup.py build_ext --inplace
touch $@
stamp/unittests_py2: stamp/build_py2
python2 unittests.py
touch $@
stamp/regression_py2: stamp/unittests_py2
python2 regression/issue_5.py
python2 regression/issue_8.py
python2 regression/issue_9.py
python2 regression/issue_10.py
python2 regression/issue_26.py
python2 regression/issue_56.py
touch $@
stamp/build_py3: $(DEPS)
python3 setup.py build_ext --inplace
touch $@
stamp/unittests_py3: stamp/build_py3
python3 unittests.py
touch $@
stamp/regression_py3: stamp/unittests_py3
python3 regression/issue_5.py
python3 regression/issue_8.py
python3 regression/issue_9.py
python3 regression/issue_10.py
python3 regression/issue_26.py
python3 regression/issue_56.py
touch $@
benchmark: benchmarks/benchmark.py stamp/build_py2
python2 $^
devbuild2:
python2 setup.py build_ext --inplace
devbuild3:
python3 setup.py build_ext --inplace
valgrind:
python -c "import sys;print(sys.version)"
valgrind --leak-check=full --track-origins=yes --log-file=valgrind.log python unittests.py
pip-release:
python setup.py sdist upload
clean:
rm -f stamp/*
rm -rf dist build