diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-13 14:06:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-13 14:06:33 +0000 |
commit | 34b706ff0ac53c2c4322f113fe0ad464a7b302dd (patch) | |
tree | 5811d9c7e5eed41dab5eebb4b55e42e2bf575a39 /lib/mkmf.rb | |
parent | b77d1a4f3404261b5fbf588c1311adc51c859d96 (diff) | |
download | ruby-34b706ff0ac53c2c4322f113fe0ad464a7b302dd.tar.gz |
mkmf.rb: timestamp directory
* lib/mkmf.rb (timestamp_file): gather timestamp files in one
directory from each extension directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 0352685f89..fccef4b5ec 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1940,7 +1940,7 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''} name = name.gsub(/\$\((#{pat.join("|")})\)/) {$&+target_prefix} end name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "" : $2 ? ".-." : "_"} - "./.#{name}.time" + "$(TIMESTAMP_DIR)/.#{name}.time" end # :startdoc: @@ -2192,6 +2192,7 @@ DLLIB = #{dllib} EXTSTATIC = #{$static || ""} STATIC_LIB = #{staticlib unless $static.nil?} #{!$extout && defined?($installed_list) ? "INSTALLED_LIST = #{$installed_list}\n" : ""} +TIMESTAMP_DIR = #{$extout ? '$(extout)/.timestamp' : '.'} " #" # TODO: fixme install_dirs.each {|d| mfile.print("%-14s= %s\n" % d) if /^[[:upper:]]/ =~ d[0]} |