зеркало из https://github.com/github/ruby.git
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:
Родитель
831202f85c
Коммит
944994b4cc
|
@ -1848,6 +1848,7 @@ Q1 = $(V:1=)
|
||||||
Q = $(Q1:0=@)
|
Q = $(Q1:0=@)
|
||||||
ECHO1 = $(V:1=@#{CONFIG['NULLCMD']})
|
ECHO1 = $(V:1=@#{CONFIG['NULLCMD']})
|
||||||
ECHO = $(ECHO1:0=@echo)
|
ECHO = $(ECHO1:0=@echo)
|
||||||
|
NULLCMD = #{CONFIG['NULLCMD']}
|
||||||
|
|
||||||
#### Start of system configuration section. ####
|
#### Start of system configuration section. ####
|
||||||
#{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk}
|
#{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk}
|
||||||
|
@ -2311,7 +2312,7 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
|
||||||
end
|
end
|
||||||
mfile.print "pre-install-rb#{sfx}:\n"
|
mfile.print "pre-install-rb#{sfx}:\n"
|
||||||
if files.empty?
|
if files.empty?
|
||||||
mfile.print("\t@#{CONFIG['NULLCMD']}\n")
|
mfile.print("\t@$(NULLCMD)\n")
|
||||||
else
|
else
|
||||||
mfile.print("\t$(ECHO) installing#{sfx.sub(/^-/, " ")} #{target} libraries\n")
|
mfile.print("\t$(ECHO) installing#{sfx.sub(/^-/, " ")} #{target} libraries\n")
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче