]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/Makefile.local
build: Allow user to specify ruby executable
[notmuch] / bindings / Makefile.local
index 4ecf839d7c18138281c7894ce7274b2f52700139..2ba2775c8e59af673837688576520689f5335f60 100644 (file)
@@ -8,10 +8,9 @@ ifeq ($(HAVE_RUBY_DEV),1)
        cd $(dir)/ruby && \
                EXTRA_LDFLAGS="$(NO_UNDEFINED_LDFLAGS)" \
                LIBNOTMUCH="../../lib/$(LINKER_NAME)" \
-               ruby extconf.rb --vendor
+               NOTMUCH_SRCDIR='$(NOTMUCH_SRCDIR)' \
+               $(RUBY) extconf.rb --vendor
        $(MAKE) -C $(dir)/ruby
-else
-       @echo Missing dependency, skipping ruby bindings
 endif
 
 CLEAN += $(patsubst %,$(dir)/ruby/%, \