mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
233b5528cd
This is supposed to help build on systems like MacOS with different conventions for naming shared libraries. We have already computed the relevant names, so doing it again in ruby seems like a bad idea.
21 lines
558 B
Makefile
21 lines
558 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)" \
|
|
ruby extconf.rb --vendor
|
|
$(MAKE) -C $(dir)/ruby
|
|
else
|
|
@echo Missing dependency, skipping ruby bindings
|
|
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)
|