diff --git a/Makefile b/Makefile index f32cd684f5a5798d54dbed1ab47b26f1ca36b062..086d43dd79aa4448d63eeb11796de6a912bc8f46 100644 --- a/Makefile +++ b/Makefile @@ -54,8 +54,9 @@ build: .ruby-bundle $(TARGET_SETUP) go install $(GO_LDFLAGS) $(COMMAND_PACKAGES) cp $(foreach cmd,$(COMMANDS),$(BIN_BUILD_DIR)/$(cmd)) $(BUILD_DIR)/ +BUNDLE_PATH ?= vendor/bundle .ruby-bundle: ruby/Gemfile.lock ruby/Gemfile - if test -z "${BUNDLE_PATH}" ; then cd ruby && bundle config --local path vendor/bundle; fi + cd ruby && bundle config --local path ${BUNDLE_PATH} cd ruby && bundle install touch $@