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

mkmf.rb: add NULLCMD

* lib/mkmf.rb (configuration): add NULLCMD.

* lib/mkmf.rb (create_makefile): use NULLCMD macro.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-17 23:23:37 +00:00
parent 831202f85c
commit 944994b4cc

View file

@ -1848,6 +1848,7 @@ Q1 = $(V:1=)
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 ? " install-rb" : ""}
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