summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 05:05:20 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 05:05:20 (GMT)
commit2dad8eae44545f4e97ec9034370dfaa0e3997a44 (patch)
treebfe487aacf527ee36e79fdab350bbddd9f389ecc /ext/extmk.rb
parentfb2011f7f0383b9c4ab0c70d3e0ccd8b064e1382 (diff)
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index d86f42b..278c087 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -584,7 +584,8 @@ unless gems.empty?
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?
# 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)