aboutsummaryrefslogtreecommitdiff
path: root/python/Makefile
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-12 18:53:18 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-12 18:53:18 -0400
commitd4b2cce60345662512238f5e26bd4eff2d83ba4c (patch)
treee1f33d6acfe2fcebee066b0af58d229e5c0ee308 /python/Makefile
parent5cf074d3372f1e189fe410a075013adefabb1aa5 (diff)
generate python/include/olm/olm.h automatically
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/Makefile b/python/Makefile
index 2ab839c..ad2621c 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -2,7 +2,11 @@ PYTHON ?= python
all: olm
-olm:
+include/olm/olm.h: ../include/olm/olm.h ../include/olm/inbound_group_session.h ../include/olm/outbound_group_session.h
+ mkdir -p include/olm
+ $(CPP) -I dummy -I ../include ../include/olm/olm.h -o include/olm/olm.h
+
+olm: include/olm/olm.h
DEVELOP=$(DEVELOP) $(PYTHON) setup.py build
install: olm