make-rules/install.rb.mk
changeset 5350 0bd2e97a57c6
parent 4252 891a844655c4
child 5355 5ccf97c2878d
equal deleted inserted replaced
5349:aad9f1baf245 5350:0bd2e97a57c6
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 VENDOR_RUBY = /usr/ruby/$(RUBY_VERSION)/lib/ruby/vendor_ruby/$(RUBY_LIB_VERSION)
    24 VENDOR_RUBY = /usr/ruby/$(RUBY_VERSION)/lib/ruby/vendor_ruby/$(RUBY_LIB_VERSION)
    25 
    25 
    26 # default user executable binaries to /usr/bin
    26 # default user executable binaries to /usr/bin
    27 INSTALL_RB_BINDIR =	$(USRBINDIR)
    27 INSTALL_RB_BINDIR =	$(USRBINDIR)
       
    28 INSTALL_RB_SBINDIR =	$(USRSBINDIR)
    28 
    29 
    29 # install.rb scripts do not have any concept of 'build' so make this a
    30 # install.rb scripts do not have any concept of 'build' so make this a
    30 # no-op
    31 # no-op
    31 $(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
    32 $(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
    32 	$(RM) -r $(@D) ; $(MKDIR) $(@D)
    33 	$(RM) -r $(@D) ; $(MKDIR) $(@D)
    39 	$(COMPONENT_PRE_INSTALL_ACTION)
    40 	$(COMPONENT_PRE_INSTALL_ACTION)
    40 	(cd $(SOURCE_DIR) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
    41 	(cd $(SOURCE_DIR) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
    41                 ./install.rb --destdir=$(PROTO_DIR) \
    42                 ./install.rb --destdir=$(PROTO_DIR) \
    42                 --ruby=$(RUBY) \
    43                 --ruby=$(RUBY) \
    43                 --bindir=$(INSTALL_RB_BINDIR) \
    44                 --bindir=$(INSTALL_RB_BINDIR) \
       
    45                 --sbindir=$(INSTALL_RB_SBINDIR) \
    44                 --sitelibdir=$(VENDOR_RUBY) \
    46                 --sitelibdir=$(VENDOR_RUBY) \
    45                 --mandir=$(USRSHAREMANDIR))
    47                 --mandir=$(USRSHAREMANDIR))
    46 	$(COMPONENT_POST_INSTALL_ACTION)
    48 	$(COMPONENT_POST_INSTALL_ACTION)
    47 	$(TOUCH) [email protected]
    49 	$(TOUCH) [email protected]
    48 
    50