From 3fbc62445e7637ff81fa42c6b20f43b9d9607709 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 14 Dec 2011 11:02:00 +0000 Subject: [PATCH] * common.mk,Makefile.in,win32/Makefile.sub (ECHO1): move platform specific hack from common.mk to Makefile.in (and win32/Makefile.sub). [Bug #5711] * lib/mkmf.rb: we can generate Makefile as we like. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ Makefile.in | 2 ++ common.mk | 2 -- lib/mkmf.rb | 4 +--- win32/Makefile.sub | 3 ++- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 17bb0ade9f..1df9b97281 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Wed Dec 14 19:57:23 2011 NAKAMURA Usaku + + * common.mk,Makefile.in,win32/Makefile.sub (ECHO1): move platform + specific hack from common.mk to Makefile.in (and win32/Makefile.sub). + [Bug #5711] + + * lib/mkmf.rb: we can generate Makefile as we like. + Wed Dec 14 19:22:33 2011 NAKAMURA Usaku * win32/win32.c, include/ruby/win32.h (rb_w32_fd_is_text): new function. diff --git a/Makefile.in b/Makefile.in index 3441c14169..a3040b600a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,7 @@ SHELL = /bin/sh NULLCMD = @NULLCMD@ +n=$(NULLCMD) +ECHO1 = $(V:1=@$n) RUNCMD = $(SHELL) CHDIR = @CHDIR@ exec = exec diff --git a/common.mk b/common.mk index 552be25431..1bca44e5e0 100644 --- a/common.mk +++ b/common.mk @@ -8,8 +8,6 @@ dll: $(LIBRUBY_SO) V = 0 Q1 = $(V:1=) Q = $(Q1:0=@) -n=$(NULLCMD) -ECHO1 = $(V:1=@$n) ECHO = $(ECHO1:0=@echo) RUBYLIB = - diff --git a/lib/mkmf.rb b/lib/mkmf.rb index ff30feb570..93a2ce76ba 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1705,8 +1705,7 @@ SHELL = /bin/sh V = 0 Q1 = $(V:1=) Q = $(Q1:0=@) -n=$(NULLCMD) -ECHO1 = $(V:1=@$n) +ECHO1 = $(V:1=@#{CONFIG['NULLCMD']}) ECHO = $(ECHO1:0=@echo) #### Start of system configuration section. #### @@ -1742,7 +1741,6 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])} possible_command = (proc {|s| s if /top_srcdir/ !~ s} unless $extmk) extconf_h = $extconf_h ? "-DRUBY_EXTCONF_H=\\\"$(RUBY_EXTCONF_H)\\\" " : $defs.join(" ") << " " mk << %{ -NULLCMD = #{CONFIG['NULLCMD']} CC = #{CONFIG['CC']} CXX = #{CONFIG['CXX']} diff --git a/win32/Makefile.sub b/win32/Makefile.sub index a6e764df95..774011c8d9 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -1,7 +1,7 @@ # -*- makefile -*- SHELL = $(COMSPEC) -NULLCMD = : +ECHO1 = $(V:1=@:) RUNCMD = $(COMSPEC) /c MKFILES = Makefile NULL = nul @@ -733,6 +733,7 @@ s,@target_alias@,$(ARCH)-$(PLATFORM),;t t s,@target_cpu@,$(ARCH),;t t s,@target_vendor@,pc,;t t s,@target_os@,$(PLATFORM),;t t +s,@NULLCMD@,:,;t t s,@CC@,$(CC),;t t s,@CPP@,$(CPP),;t t s,@CXX@,$$(CC),;t t