mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
b2e4778ea4
This way, one can build for a different Ruby than $PATH/ruby (e. g. different versions, or Ruby in other paths). Signed-off-by: Thomas Schneider <qsx@chaotikum.eu>
20 lines
545 B
Makefile
20 lines
545 B
Makefile
# -*- makefile -*-
|
|
|
|
dir := bindings
|
|
|
|
# force the shared library to be built
|
|
ruby-bindings: lib/$(LINKER_NAME)
|
|
ifeq ($(HAVE_RUBY_DEV),1)
|
|
cd $(dir)/ruby && \
|
|
EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \
|
|
LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
|
|
NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
|
|
$(RUBY) extconf.rb --vendor
|
|
$(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)
|