1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mkmf.rb: directory timestamp

* lib/mkmf.rb (create_makefile): use timestamp file dependencies for
  directories.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-09-23 12:48:15 +00:00
parent 9f4f154501
commit ba3d600583
2 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,7 @@
Sun Sep 23 21:46:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sun Sep 23 21:48:08 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (create_makefile): use timestamp file dependencies for
directories.
* lib/mkmf.rb: unexpand macros.

View file

@ -2126,14 +2126,14 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
if target
f = "$(DLLIB)"
dest = "#{dir}/#{f}"
mfile.puts dest
if $extout
mfile.puts dest
mfile.print "clean-so::\n"
mfile.print "\t-$(Q)$(RM) #{fseprepl[dest]}\n"
mfile.print "\t-$(Q)$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n"
else
mfile.print "#{dest}: #{f}\n\t-$(Q)$(MAKEDIRS) $(@D#{sep})\n"
mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} $(@D#{sep})\n"
mfile.print "#{f} #{timestamp_file(dir)}\n"
mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} #{dir}\n"
if defined?($installed_list)
mfile.print "\t@echo #{dir}/#{File.basename(f)}>>$(INSTALLED_LIST)\n"
end