forked from yykamei/python-libldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (30 loc) · 1.06 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
PYTHON = /usr/bin/env python3
ROOT = $(realpath .)/test-stage
.PHONY: doc-html
doc-html:
$(PYTHON) setup.py install --root=$(ROOT) --install-lib=/
env PYTHONPATH=$(ROOT) make html -C Doc
.PHONY: test-interactive
test-interactive:
$(PYTHON) setup.py install --root=$(ROOT) --install-lib=/
env PYTHONPATH=$(ROOT) $(PYTHON)
.PHONY: test-unittest
test-unittest:
$(PYTHON) setup.py install --root=$(ROOT) --install-lib=/
env PYTHONPATH=$(ROOT) $(PYTHON) -m unittest discover --verbose
.PHONY: test-interactive-with-gdb
test-interactive-with-gdb:
$(PYTHON) setup.py install --root=$(ROOT) --install-lib=/
env PYTHONPATH=$(ROOT) gdb python3
.PHONY: test-interactive-with-valgrind
test-interactive-with-valgrind:
$(PYTHON) setup.py install --root=$(ROOT) --install-lib=/
env PYTHONPATH=$(ROOT) valgrind --tool=memcheck --leak-check=yes python3
.PHONY: pypi-upload
pypi-upload: clean
git branch --list --no-color | grep -F '* master' || exit 1
$(PYTHON) setup.py sdist upload
.PHONY: clean
clean:
rm -rf dist build $(ROOT) Lib/libldap.egg-info
make clean -C Doc