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)" \
|
2017-03-12 12:59:13 +01:00
|
|
|
NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
|
2018-05-09 14:38:48 +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)
|
2018-05-13 18:17:18 +02:00
|
|
|
|
|
|
|
CLEAN += bindings/ruby/.vendorarchdir.time
|