ruby-changes:33899
From: nobu <ko1@a...>
Date: Sun, 18 May 2014 08:23:43 +0900 (JST)
Subject: [ruby-changes:33899] nobu:r45980 (trunk): mkmf.rb: add NULLCMD
nobu 2014-05-18 08:23:37 +0900 (Sun, 18 May 2014) New Revision: 45980 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45980 Log: mkmf.rb: add NULLCMD * lib/mkmf.rb (configuration): add NULLCMD. * lib/mkmf.rb (create_makefile): use NULLCMD macro. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 45979) +++ lib/mkmf.rb (revision 45980) @@ -1848,6 +1848,7 @@ Q1 = $(V:1=) https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1848 Q = $(Q1:0=@) ECHO1 = $(V:1=@#{CONFIG['NULLCMD']}) ECHO = $(ECHO1:0=@echo) +NULLCMD = #{CONFIG['NULLCMD']} #### Start of system configuration section. #### #{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk} @@ -2311,7 +2312,7 @@ static: $(STATIC_LIB)#{$extout ? " insta https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2312 end mfile.print "pre-install-rb#{sfx}:\n" if files.empty? - mfile.print("\t@#{CONFIG['NULLCMD']}\n") + mfile.print("\t@$(NULLCMD)\n") else mfile.print("\t$(ECHO) installing#{sfx.sub(/^-/, " ")} #{target} libraries\n") end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/