diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-23 12:48:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-23 12:48:15 +0000 |
commit | ba3d6005837aab1815131512ca4918f17ee12d07 (patch) | |
tree | bf80425f930dc97e96fdecf145bee48ac9eb02d5 | |
parent | 9f4f1545010b42c23a7085de5db9ae6ce06f1148 (diff) | |
download | ruby-ba3d6005837aab1815131512ca4918f17ee12d07.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/mkmf.rb | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -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. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index b16465da48..a01d317756 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -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 |