summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-06 03:10:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-06 03:10:43 +0000
commitf0dc29f2115c8eb28fc880e3f8dbeb26babe2242 (patch)
tree3e798bde2ed0a76ab4f81ad45884cc62c3fca671
parent38cb576b9cbeefcd769b339dcec9054c2ed28ec3 (diff)
socket/depend: add srcs [ci skip]
* ext/socket/depend (srcs): phony target to update confdefs source files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--common.mk8
-rw-r--r--ext/socket/depend2
2 files changed, 6 insertions, 4 deletions
diff --git a/common.mk b/common.mk
index 0d73d6ec7a0..122942dd261 100644
--- a/common.mk
+++ b/common.mk
@@ -925,15 +925,15 @@ $(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;s#{.*}##' depend | \
+ sed '/AUTOGENERATED/q' 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)"
+ sed '/AUTOGENERATED/q' depend | \
+ $(exec) $(MAKE) -f - $(MFLAGS) \
+ Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. VPATH=../.. RUBY="$(BASERUBY)"
##
diff --git a/ext/socket/depend b/ext/socket/depend
index ba8cdce4cc8..4b93dbeb1f2 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,3 +1,5 @@
+srcs: constdefs.h constdefs.c
+
getnameinfo.o: getnameinfo.c $(arch_hdrdir)/ruby/config.h addrinfo.h sockport.h rubysocket.h
getaddrinfo.o: getaddrinfo.c $(arch_hdrdir)/ruby/config.h addrinfo.h sockport.h