diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-04 05:27:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-04 05:27:48 +0000 |
commit | 9a13630140d46e7cef736860e76bfdd0b3a31897 (patch) | |
tree | e6ba816726b502ea7da0f3cd2779d157a8081dd6 | |
parent | 2dad8eae44545f4e97ec9034370dfaa0e3997a44 (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
-rwxr-xr-x | ext/extmk.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 278c087491..b73b8b6907 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 |