summaryrefslogtreecommitdiffstats
path: root/ffi/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-02-15 18:06:50 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-01-11 13:23:24 +0100
commit177835be9dba392ab10994254b67aa676be66331 (patch)
tree7682b06cd40bbec88dec091c23a18002a9bfabaa /ffi/Makefile
parented7d023d5a6a2587ba218910bc1849d0d34adca7 (diff)
ffi: Add preliminary Python bindings.
- The bingings support basic manipulation of OpenPGP data, but are quite incomplete. Furthermore, the Python API is not very pythonic in some places, so expect it to break in the future.
Diffstat (limited to 'ffi/Makefile')
-rw-r--r--ffi/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/ffi/Makefile b/ffi/Makefile
index 60447429..64f48235 100644
--- a/ffi/Makefile
+++ b/ffi/Makefile
@@ -23,15 +23,12 @@ all: build
.PHONY: build
build:
- sed -e 's|VERSION|$(VERSION)|g' \
- -e 's|PREFIX|$(shell pwd)|g' \
- -e 's|libdir=.*|libdir='"$(CARGO_TARGET_DIR)"'/debug|g' \
- sequoia.pc.in \
- > $(CARGO_TARGET_DIR)/debug/sequoia.pc
+ $(MAKE) -Clang/python build
# Testing and examples.
.PHONY: test check
test check:
+ $(MAKE) -Clang/python test
.PHONY: examples
examples:
@@ -40,6 +37,7 @@ examples:
# Installation.
.PHONY: build-release
build-release:
+ $(MAKE) -Clang/python build-release
.PHONY: install
install:
@@ -62,9 +60,12 @@ install:
$(DESTDIR)$(PREFIX)/lib/libsequoia_ffi.so
$(INSTALL) $(CARGO_TARGET_DIR)/release/libsequoia_ffi.a \
$(DESTDIR)$(PREFIX)/lib/libsequoia_ffi.a
+ # Now the bindings.
+ $(MAKE) -Clang/python install
# Housekeeping.
.PHONY: clean
clean:
rm -f sequoia.pc
$(MAKE) -Cexamples clean
+ $(MAKE) -Clang/python clean