ruby-changes:41358
From: nobu <ko1@a...>
Date: Mon, 4 Jan 2016 16:16:01 +0900 (JST)
Subject: [ruby-changes:41358] nobu:r53430 (trunk): common.mk: generate socket constdefs
nobu 2016-01-04 16:16:09 +0900 (Mon, 04 Jan 2016) New Revision: 53430 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53430 Log: common.mk: generate socket constdefs * common.mk (ext/socket/constdefs.c): generate platform indenpendent constant definitions beforehand under the source tree at updating the working copy. Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 53429) +++ common.mk (revision 53430) @@ -779,7 +779,9 @@ common-srcs: {$(VPATH)}parse.c {$(VPATH) https://github.com/ruby/ruby/blob/trunk/common.mk#L779 srcs: common-srcs srcs-enc EXT_SRCS = $(srcdir)/ext/ripper/ripper.c \ - $(srcdir)/ext/rbconfig/sizeof/sizes.c + $(srcdir)/ext/rbconfig/sizeof/sizes.c \ + $(srcdir)/ext/socket/constdefs.c \ + # EXT_SRCS srcs-ext: $(EXT_SRCS) @@ -890,6 +892,12 @@ $(srcdir)/ext/rbconfig/sizeof/sizes.c: $ https://github.com/ruby/ruby/blob/trunk/common.mk#L892 $(exec) $(MAKE) -f - $(MFLAGS) \ Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)" +$(srcdir)/ext/socket/constdefs.c: $(srcdir)/ext/socket/depend + $(Q) $(CHDIR) $(@D) && \ + sed -n '/^constdefs/,/^$$/p' depend | \ + $(exec) $(MAKE) -f - $(MFLAGS) constdefs.h constdefs.c \ + Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)" + ## run: fake miniruby$(EXEEXT) PHONY -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/