From 34b706ff0ac53c2c4322f113fe0ad464a7b302dd Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 13 Apr 2013 14:06:33 +0000 Subject: 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 --- lib/mkmf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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]} -- cgit v1.2.3