summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-22 12:50:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-22 12:50:36 +0000
commit78b95b49f8715a4782f5b9bdc4c163e445cdc303 (patch)
tree2663d78a4c0516cb6533267a248e40f4b1a6af9c /common.mk
parent709a60f92d1f922211c7f9e0c8a3f72a23bf8d11 (diff)
template/extinit.c.tmpl
* template/extinit.c.tmpl: separate from ext/extmk.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 3f4bcf6c3a..9db6a3d032 100644
--- a/common.mk
+++ b/common.mk
@@ -220,6 +220,10 @@ build-ext: $(EXTS_MK)
$(Q)$(MAKE) -f $(EXTS_MK) $(MFLAGS) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
EXTENCS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC)
+ext/extinit.c: $(srcdir)/template/extinit.c.tmpl
+ $(Q)$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ -c \
+ $(srcdir)/template/extinit.c.tmpl $(EXTINITS)
+
prog: program wprogram
$(PREP): $(MKFILES)