diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-08 18:10:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-08 18:10:04 +0000 |
commit | 46eddae1b486ae73480d00ebd99adb94ea04eb57 (patch) | |
tree | 5c250f817994c66ff74640cdd86af19ba739f960 /lib | |
parent | 53fdb9e190110afeb318b6bb7b0a8f17a9873fe8 (diff) | |
download | ruby-46eddae1b486ae73480d00ebd99adb94ea04eb57.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@40194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index a02c3cd039..69fcd9810f 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1922,7 +1922,7 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''} def timestamp_file(name) name = name.gsub(/(\$[({]|[})])|(\/+)|[^-.\w]+/) {$1 ? "" : $2 ? ".-." : "_"} - "./.#{name}.time" + "$(TIMESTAMP_DIR)/.#{name}.time" end # :startdoc: @@ -2174,6 +2174,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]} @@ -2267,7 +2268,7 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} dirs.unshift(sodir) if target and !dirs.include?(sodir) dirs.each do |d| t = timestamp_file(d) - mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) #{d}\n\t$(Q) $(TOUCH) $@\n" + mfile.print "#{t}:\n\t$(Q) $(MAKEDIRS) $(@D) #{d}\n\t$(Q) $(TOUCH) $@\n" end mfile.print <<-SITEINSTALL |