2015-06-01 09:08:59 +02:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
dir := bindings
|
|
|
|
|
|
|
|
# force the shared library to be built
|
2015-06-01 09:09:01 +02:00
|
|
|
ruby-bindings: lib/$(LINKER_NAME)
|
2015-06-01 09:08:59 +02:00
|
|
|
ifeq ($(HAVE_RUBY_DEV),1)
|
2015-06-01 09:09:00 +02:00
|
|
|
cd $(dir)/ruby && \
|
|
|
|
EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \
|
2015-06-01 09:09:01 +02:00
|
|
|
LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
|
2015-06-01 09:09:00 +02:00
|
|
|
ruby extconf.rb --vendor
|
2015-06-01 09:08:59 +02:00
|
|
|
$(MAKE) -C $(dir)/ruby
|
|
|
|
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)
|