diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 03:52:21 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-05 03:52:21 +0000 |
| commit | 26947723b42e8a09a33cf1d70caa30dd203e9943 (patch) | |
| tree | 07ff79bc2fa6912085c71f2597ac53f38810bf71 | |
| parent | 839eb1a2d711d60dab1abde2fbe5fb52c4338db1 (diff) | |
| download | ruby-26947723b42e8a09a33cf1d70caa30dd203e9943.tar.gz ruby-26947723b42e8a09a33cf1d70caa30dd203e9943.tar.xz ruby-26947723b42e8a09a33cf1d70caa30dd203e9943.zip | |
* lib/mkmf.rb (create_makefile): allow putting spaces between target
and colon in depend file.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | eval.c | 1 | ||||
| -rw-r--r-- | lib/mkmf.rb | 6 | ||||
| -rw-r--r-- | wince/Makefile.sub | 2 |
4 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Sat Mar 5 12:52:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/mkmf.rb (create_makefile): allow putting spaces between target + and colon in depend file. + Sat Mar 5 02:41:00 2005 NAKAMURA Usaku <usa@ruby-lang.org> * file.c (eaccess): workaround for VC++8 runtime. @@ -4633,6 +4633,7 @@ break_jump(retval) static VALUE bmcall _((VALUE, VALUE)); static int method_arity _((VALUE)); +/*:nodoc:*/ static VALUE rb_yield_0(val, self, klass, flags, avalue) VALUE val, self, klass; /* OK */ diff --git a/lib/mkmf.rb b/lib/mkmf.rb index a6a88b99c..c0066126a 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1096,11 +1096,11 @@ site-install-rb: install-rb impconv[] end end - if /\A\.(\w+)\.(\w+)(?:\s*:)/ =~ line - implicit = [[$1, $2], [$']] + if m = /\A\.(\w+)\.(\w+)(?:\s*:)/.match(line) + implicit = [[m[1], m[2]], [m.post_match]] next elsif RULE_SUBST and /\A[$\w][^#]*:/ =~ line - line.gsub!(%r"(?<=\A|\s)(?!\.)([^$(){}+=:\s\/\\,]+)(?=\s|\z)") {|*m| RULE_SUBST % m} + line.gsub!(%r"(?<=\s)(?!\.)([^$(){}+=:\s\/\\,]+)(?=\s|\z)") {|*m| RULE_SUBST % m} end mfile.print line end diff --git a/wince/Makefile.sub b/wince/Makefile.sub index c83fc85f7..74cb43f1e 100644 --- a/wince/Makefile.sub +++ b/wince/Makefile.sub @@ -194,7 +194,7 @@ BANG = ! !include config.h !endif -$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub +$(CONFIG_H): $(MKFILES) $(srcdir)/wince/Makefile.sub @echo Creating config.h @$(srcdir:/=\)\win32\ifchange.bat config.h << #define STDC_HEADERS 1 |
