-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
58 lines (38 loc) · 1013 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
default: all
all: libjio
libjio:
$(MAKE) -C libjio/
install:
$(MAKE) -C libjio/ install
PY_DEBUG=
ifdef DEBUG
PY_DEBUG=--debug
endif
python2: libjio
cd bindings/python && python setup.py build $(PY_DEBUG)
python2_install: python2
cd bindings/python && python setup.py install
python3: libjio
cd bindings/python && python3 setup.py build $(PY_DEBUG)
python3_install: python3
cd bindings/python && python3 setup.py install
preload:
$(MAKE) -C bindings/preload/
preload_install: preload
$(MAKE) -C bindings/preload/ install
tests: all python2 python3
tests/util/quick-test-run normal
tests-fi: all python2 python3
@if [ "$(FI)" != "1" ]; then \
echo "Error: $@ has to be run using: make FI=1 $@"; \
exit 1; \
fi
tests/util/quick-test-run fiu
clean:
$(MAKE) -C libjio/ clean
$(MAKE) -C bindings/preload clean
rm -rf bindings/python/build/
.PHONY: default all libjio install \
python2 python2_install python3 python3_install \
preload preload_install \
tests tests-fi clean