forked from WojciechMula/pyahocorasick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 1.04 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
.SUFFIXES:
.PHONY: test clean
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 $^
clean:
rm -f stamp/*
rm -rf dist build