X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2FMakefile.local;h=3672e69ff76af07da05afc0a527355d2c0271941;hp=17b561caac52dfc17a1f4fc9e56758b32dbb25fd;hb=3e2e724d53a1dce3ba00a20c71b2e6f735678136;hpb=c0c5645538d9dda84657602ee4189f4ff3ca1aeb diff --git a/bindings/Makefile.local b/bindings/Makefile.local index 17b561ca..3672e69f 100644 --- a/bindings/Makefile.local +++ b/bindings/Makefile.local @@ -1,4 +1,4 @@ -# -*- makefile -*- +# -*- makefile-gmake -*- dir := bindings @@ -9,8 +9,15 @@ ifeq ($(HAVE_RUBY_DEV),1) EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \ LIBNOTMUCH="../../lib/$(LINKER_NAME)" \ NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \ - ruby extconf.rb --vendor - $(MAKE) -C $(dir)/ruby + $(RUBY) extconf.rb --vendor + $(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/%, \ @@ -18,3 +25,7 @@ CLEAN += $(patsubst %,$(dir)/ruby/%, \ 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