]> git.notmuchmail.org Git - notmuch/blob - bindings/Makefile.local
build: integrate building ruby bindings into notmuch build process
[notmuch] / bindings / Makefile.local
1 # -*- makefile -*-
2
3 dir := bindings
4
5 # force the shared library to be built
6 ruby-bindings: lib/libnotmuch.so
7 ifeq ($(HAVE_RUBY_DEV),1)
8         cd $(dir)/ruby && ruby extconf.rb --vendor
9         $(MAKE) -C $(dir)/ruby
10 else
11         @echo Missing dependency, skipping ruby bindings
12 endif
13
14 CLEAN += $(patsubst %,$(dir)/ruby/%, \
15         .RUBYARCHDIR.time \
16         Makefile database.o directory.o filenames.o\
17         init.o message.o messages.o mkmf.log notmuch.so query.o \
18         status.o tags.o thread.o threads.o)