summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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