[前][次][番号順一覧][スレッド一覧]

ruby-changes:43993

From: nobu <ko1@a...>
Date: Sun, 4 Sep 2016 14:05:24 +0900 (JST)
Subject: [ruby-changes:43993] nobu:r56066 (trunk): extmk.rb: fix gem.build_complete location

nobu	2016-09-04 14:05:20 +0900 (Sun, 04 Sep 2016)

  New Revision: 56066

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56066

  Log:
    extmk.rb: fix gem.build_complete location
    
    * ext/extmk.rb (timestamp_file): make build_complete file at the
      toplevel of the gem directory without target_prefix.

  Modified files:
    trunk/ext/extmk.rb
Index: ext/extmk.rb
===================================================================
--- ext/extmk.rb	(revision 56065)
+++ ext/extmk.rb	(revision 56066)
@@ -584,7 +584,8 @@ unless gems.empty? https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L584
     super(*args) do |conf|
       conf.find do |s|
         s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
-          "#{$1}$(extout)/gems/$(arch)/#{@gemname}$(target_prefix)"
+          "TARGET_GEM_DIR = $(extout)/gems/$(arch)/#{@gemname}\n"\
+          "#{$1}$(TARGET_GEM_DIR)$(target_prefix)"
         }
       end
       conf << %{
@@ -592,7 +593,7 @@ unless gems.empty? https://github.com/ruby/ruby/blob/trunk/ext/extmk.rb#L593
 # default target
 all:
 
-build_complete = $(TARGET_SO_DIR)gem.build_complete
+build_complete = $(TARGET_GEM_DIR)/gem.build_complete
 install-so: build_complete
 build_complete: $(build_complete)
 $(build_complete): $(TARGET_SO)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]