Client: rb
Patch: jfarrell | Nevo Hed
Updates ruby checks to require bundler and uses bundle exec to ensure
the required rake version.
have_ruby=no
if test "$with_ruby" = "yes"; then
AC_PATH_PROG([RUBY], [ruby])
- AC_PATH_PROG([RAKE], [rake])
AC_PATH_PROG([BUNDLER], [bundle])
- if test "x$RUBY" != "x" -a "x$RAKE" != "x"; then
+ if test "x$RUBY" != "x" -a "x$BUNDLER" != "x"; then
have_ruby="yes"
fi
fi
DESTDIR ?= /
-all-local:
if HAVE_BUNDLER
+
+all-local:
$(BUNDLER) install
$(BUNDLER) exec rake
-endif
install-exec-hook:
- $(RAKE) install
+ $(BUNDLER) exec rake install
clean-local:
- $(RAKE) clean
+ $(BUNDLER) exec rake clean
check-local: all
-if HAVE_BUNDLER
$(BUNDLER) install
$(BUNDLER) exec rake
+
endif