aboutsummaryrefslogtreecommitdiff
path: root/python/Makefile
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2018-07-08 12:19:17 +0200
committerHubert Chathi <hubert@uhoreg.ca>2018-07-18 17:44:32 -0400
commitac071d9c0d69e4330a06f171e3bddc713ecd97d6 (patch)
treefacb7f834e43d2a346f07e3405da2c304ff66cc0 /python/Makefile
parente3d66733712e161d9287ea3f0116e5b57477b0d8 (diff)
python: Enable build with the local build of the Olm C library.
This patch adds the ability to build the bindings without having a globally installed Olm C library. Provided that the C library is already built, the tests can be run now with make test. Signed-off-by: Damir Jelić <poljar@termina.org.uk>
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/python/Makefile b/python/Makefile
index 998d307..2ab839c 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -3,7 +3,7 @@ PYTHON ?= python
all: olm
olm:
- $(PYTHON) setup.py build
+ DEVELOP=$(DEVELOP) $(PYTHON) setup.py build
install: olm
$(PYTHON) setup.py install --skip-build -O1 --root=$(DESTDIR)
@@ -24,12 +24,14 @@ clean:
develop: _libolm.o
py2develop: _libolm.so
+_libolm.so: DEVELOP ?= 1
_libolm.so: include/olm/olm.h olm_build.py
- python2 olm_build.py
+ DEVELOP=$(DEVELOP) python2 olm_build.py
-rm _libolm.c
+_libolm.o: DEVELOP ?= 1
_libolm.o: include/olm/olm.h olm_build.py
- python3 olm_build.py
+ DEVELOP=$(DEVELOP) python3 olm_build.py
-rm _libolm.c
.PHONY: all olm install clean test develop