summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 05:27:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-04 05:27:48 +0000
commit9a13630140d46e7cef736860e76bfdd0b3a31897 (patch)
treee6ba816726b502ea7da0f3cd2779d157a8081dd6 /ext
parent2dad8eae44545f4e97ec9034370dfaa0e3997a44 (diff)
extmk.rb: no ext, no build_complete
* ext/extmk.rb (create_makefile): touch gem.build_complete only if building an extension library. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rwxr-xr-xext/extmk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 278c0874912..b73b8b6907c 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -588,7 +588,7 @@ unless gems.empty?
"#{$1}$(TARGET_GEM_DIR)$(target_prefix)"
}
end
- conf << %{
+ conf.any? {|s| /^TARGET *= *\S/ =~ s} and conf << %{
# default target
all:
@@ -600,6 +600,7 @@ $(build_complete): $(TARGET_SO)
$(Q) $(TOUCH) $@
}
+ conf
end
end
end