From 65cec46e40132b84f1b3a725a136955e0be602df Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 24 Nov 2018 04:33:59 +0000 Subject: Make ext/etc/constdefs.h by srcs-ext Make platform independent header, ext/etc/constdefs.h, by `make srcs-ext`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.mk b/common.mk index 34d4974f35..3398caaba0 100644 --- a/common.mk +++ b/common.mk @@ -966,6 +966,7 @@ EXT_SRCS = $(srcdir)/ext/ripper/ripper.c \ $(srcdir)/ext/rbconfig/sizeof/sizes.c \ $(srcdir)/ext/rbconfig/sizeof/limits.c \ $(srcdir)/ext/socket/constdefs.c \ + $(srcdir)/ext/etc/constdefs.h \ # EXT_SRCS srcs-ext: $(EXT_SRCS) @@ -1108,6 +1109,12 @@ $(srcdir)/ext/socket/constdefs.c: $(srcdir)/ext/socket/depend $(exec) $(MAKE) -f - $(mflags) \ Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. VPATH=../.. RUBY="$(BASERUBY)" +$(srcdir)/ext/etc/constdefs.h: $(srcdir)/ext/etc/depend + $(Q) $(CHDIR) $(@D) && \ + sed '/AUTOGENERATED/q' depend | \ + $(exec) $(MAKE) -f - $(mflags) \ + Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. VPATH=../.. RUBY="$(BASERUBY)" + ## run: fake miniruby$(EXEEXT) PHONY -- cgit v1.2.1