equal
deleted
inserted
replaced
30 |
30 |
31 |
31 |
32 # Some gems projects have to be built using rake |
32 # Some gems projects have to be built using rake |
33 # Allow GEM build/install commands to be overwritten |
33 # Allow GEM build/install commands to be overwritten |
34 # to account for possible differences |
34 # to account for possible differences |
35 GEM_BUILD_ACTION=(cd $(@D); $(GEM) build $(GEMSPEC)) |
35 GEM_BUILD_ACTION=(cd $(@D); $(GEM) build $(GEM_BUILD_ARGS) $(GEMSPEC)) |
|
36 |
|
37 ifeq ($(firstword $(subst .,$(space),$(RUBY_VERSION))),2) |
|
38 # gem install 2.x does docs differently. Continue to generate both types |
|
39 GEM_INSTALL_ARGS=--document rdoc,ri |
|
40 endif |
36 |
41 |
37 GEM_INSTALL_ACTION=\ |
42 GEM_INSTALL_ACTION=\ |
38 $(GEM) install -V --local --install-dir $(PROTO_DIR)/$(VENDOR_GEM_DIR) \ |
43 $(GEM) install -V --local --install-dir $(PROTO_DIR)/$(VENDOR_GEM_DIR) \ |
39 --bindir $(PROTO_DIR)/$(VENDOR_GEM_DIR)/bin --force \ |
44 --bindir $(PROTO_DIR)/$(VENDOR_GEM_DIR)/bin --force $(GEM_INSTALL_ARGS) \ |
40 $(@D)/$(COMPONENT_ARCHIVE) |
45 $(@D)/$(COMPONENT_ARCHIVE) |
41 |
46 |
42 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
47 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
43 $(RM) -r $(@D) ; $(MKDIR) $(@D) |
48 $(RM) -r $(@D) ; $(MKDIR) $(@D) |
44 $(CLONEY) $(SOURCE_DIR) $(@D) |
49 $(CLONEY) $(SOURCE_DIR) $(@D) |