summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-09 03:33:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-09 03:33:20 +0000
commit64e228598020b5334b58e88de29cb9ab9a6f3030 (patch)
tree2f6c8064d99736375286c2de5d13f6a5f8c9f5b4
parent445e11da5050524d48ce05a46b99f205102e8314 (diff)
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
-rw-r--r--common.mk2
-rw-r--r--ext/rbconfig/sizeof/depend5
2 files changed, 5 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 4ede19c..aa1a7b0 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 56564b1..4243785 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 \