X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2FMakefile.local;h=19ddd6ea13d5641b215a693ccc4b885da1357d15;hp=11d11d4bcbeb19d217f221f8d250be0d4e2cde32;hb=1abe5a0c5b18bdbc0b25f3d138356ee73fe961d1;hpb=8a433aad9901f014e36f1b5cf36e2a6ac9cb466b diff --git a/bindings/Makefile.local b/bindings/Makefile.local index 11d11d4b..19ddd6ea 100644 --- a/bindings/Makefile.local +++ b/bindings/Makefile.local @@ -8,12 +8,24 @@ ifeq ($(HAVE_RUBY_DEV),1) cd $(dir)/ruby && \ EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \ LIBNOTMUCH="../../lib/$(LINKER_NAME)" \ - ruby extconf.rb --vendor + NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \ + $(RUBY) extconf.rb --vendor $(MAKE) -C $(dir)/ruby 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/%, \ .RUBYARCHDIR.time \ Makefile database.o directory.o filenames.o\ init.o message.o messages.o mkmf.log notmuch.so query.o \ status.o tags.o thread.o threads.o) + +CLEAN += bindings/ruby/.vendorarchdir.time + +CLEAN += bindings/python-cffi/build