X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2FMakefile.local;h=3672e69ff76af07da05afc0a527355d2c0271941;hp=18f958359bf0c58e23b7dee7b3c9586dcc9c29ec;hb=ca4e1d885b0d9dcdeb45ad6f2829f88dafc7949c;hpb=2f4beda434c59f9e2f5b7c32d26543bad7217ad4 diff --git a/bindings/Makefile.local b/bindings/Makefile.local index 18f95835..3672e69f 100644 --- a/bindings/Makefile.local +++ b/bindings/Makefile.local @@ -1,4 +1,4 @@ -# -*- makefile -*- +# -*- makefile-gmake -*- dir := bindings @@ -10,7 +10,14 @@ ifeq ($(HAVE_RUBY_DEV),1) LIBNOTMUCH="../../lib/$(LINKER_NAME)" \ NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \ $(RUBY) extconf.rb --vendor - $(MAKE) -C $(dir)/ruby + $(MAKE) -C $(dir)/ruby CFLAGS="$(CFLAGS) -pipe -fno-plt -fPIC" +endif + +python-cffi-bindings: lib/$(LINKER_NAME) +ifeq ($(HAVE_PYTHON3_CFFI),1) + cd $(dir)/python-cffi && \ + ${PYTHON} setup.py build --build-lib build/stage && \ + mkdir -p build/stage/tests && cp tests/*.py build/stage/tests endif CLEAN += $(patsubst %,$(dir)/ruby/%, \ @@ -20,3 +27,5 @@ CLEAN += $(patsubst %,$(dir)/ruby/%, \ status.o tags.o thread.o threads.o) CLEAN += bindings/ruby/.vendorarchdir.time + +CLEAN += bindings/python-cffi/build