From 64e228598020b5334b58e88de29cb9ab9a6f3030 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 Jan 2016 03:33:20 +0000 Subject: [PATCH] nmake VPATH * ext/rbconfig/sizeof/depend (sizes.c): add nmake VPATH prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 2 +- ext/rbconfig/sizeof/depend | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index 4ede19cff6..aa1a7b06f7 100644 --- a/common.mk +++ b/common.mk @@ -887,7 +887,7 @@ $(srcdir)/ext/rbconfig/sizeof/sizes.c: $(srcdir)/ext/rbconfig/sizeof/depend \ $(srcdir)/tool/generic_erb.rb $(srcdir)/template/sizes.c.tmpl $(srcdir)/configure.in $(ECHO) generating $@ $(Q) $(CHDIR) $(@D) && \ - sed /AUTOGENERATED/q depend | \ + sed '/AUTOGENERATED/q;s/{.*}//' depend | \ $(exec) $(MAKE) -f - $(MFLAGS) \ Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)" diff --git a/ext/rbconfig/sizeof/depend b/ext/rbconfig/sizeof/depend index 56564b1b99..4243785d43 100644 --- a/ext/rbconfig/sizeof/depend +++ b/ext/rbconfig/sizeof/depend @@ -1,4 +1,7 @@ -sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb +{$(VPATH)}sizes.c: $(top_srcdir)/tool/generic_erb.rb \ + $(top_srcdir)/template/sizes.c.tmpl \ + $(top_srcdir)/configure.in \ + $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb $(Q) $(RUBY) $(top_srcdir)/tool/generic_erb.rb --output=$@ \ $(top_srcdir)/template/sizes.c.tmpl \ $(top_srcdir)/configure.in \