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