mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5f4a2ba12
commit
04a913f26d
1 changed files with 9 additions and 1 deletions
10
common.mk
10
common.mk
|
@ -779,7 +779,9 @@ common-srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c {$(VPATH)}enc/trans/newline.c {$(
|
|||
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: $(srcdir)/ext/rbconfig/sizeof/depend \
|
|||
$(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
|
||||
|
|
Loading…
Add table
Reference in a new issue