test: regression tests for n_indexopts_{get,set}_decrypt_policy
[notmuch] / bindings / Makefile.local
1 # -*- makefile -*-
2
3 dir := bindings
4
5 # force the shared library to be built
6 ruby-bindings: lib/$(LINKER_NAME)
7 ifeq ($(HAVE_RUBY_DEV),1)
8         cd $(dir)/ruby && \
9                 EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \
10                 LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
11                 NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
12                 $(RUBY) extconf.rb --vendor
13         $(MAKE) -C $(dir)/ruby
14 endif
15
16 python-cffi-bindings: lib/$(LINKER_NAME)
17 ifeq ($(HAVE_PYTHON3_CFFI),1)
18         cd $(dir)/python-cffi && \
19                 ${PYTHON} setup.py build --build-lib build/stage && \
20                 mkdir -p build/stage/tests && cp tests/*.py build/stage/tests
21 endif
22
23 CLEAN += $(patsubst %,$(dir)/ruby/%, \
24         .RUBYARCHDIR.time \
25         Makefile database.o directory.o filenames.o\
26         init.o message.o messages.o mkmf.log notmuch.so query.o \
27         status.o tags.o thread.o threads.o)
28
29 CLEAN += bindings/ruby/.vendorarchdir.time
30
31 CLEAN += bindings/python-cffi/build