summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-13 14:06:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-13 14:06:33 +0000
commit34b706ff0ac53c2c4322f113fe0ad464a7b302dd (patch)
tree5811d9c7e5eed41dab5eebb4b55e42e2bf575a39
parentb77d1a4f3404261b5fbf588c1311adc51c859d96 (diff)
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
-rw-r--r--ChangeLog5
-rw-r--r--lib/mkmf.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 647dead44e..4304a239e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Apr 13 23:06:20 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (timestamp_file): gather timestamp files in one
+ directory from each extension directories.
+
Sat Apr 13 21:09:02 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/mkmf.rb (MakeMakefile#create_makefile): output new macro
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]}