зеркало из https://github.com/github/ruby.git
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:
Родитель
d5f4a2ba12
Коммит
04a913f26d
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
|
srcs: common-srcs srcs-enc
|
||||||
|
|
||||||
EXT_SRCS = $(srcdir)/ext/ripper/ripper.c \
|
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)
|
srcs-ext: $(EXT_SRCS)
|
||||||
|
|
||||||
|
@ -890,6 +892,12 @@ $(srcdir)/ext/rbconfig/sizeof/sizes.c: $(srcdir)/ext/rbconfig/sizeof/depend \
|
||||||
$(exec) $(MAKE) -f - $(MFLAGS) \
|
$(exec) $(MAKE) -f - $(MFLAGS) \
|
||||||
Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)"
|
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
|
run: fake miniruby$(EXEEXT) PHONY
|
||||||
|
|
Загрузка…
Ссылка в новой задаче