summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 11:16:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 11:16:14 +0000
commitbfb64d476578eadd61a738149726da37840f068d (patch)
treefe162b237ba661b3492858d2c616a077dbd4436c /ext
parent86661b5c60b8da6e5641c9c772b57857a1f988f4 (diff)
Move dependency on gemspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/depend2
-rw-r--r--ext/bigdecimal/extconf.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/bigdecimal/depend b/ext/bigdecimal/depend
index 6783192b30..78833701ef 100644
--- a/ext/bigdecimal/depend
+++ b/ext/bigdecimal/depend
@@ -1,3 +1,5 @@
+extconf.h: $(srcdir)/$(GEMSPEC)
+
# AUTOGENERATED DEPENDENCIES START
bigdecimal.o: $(RUBY_EXTCONF_H)
bigdecimal.o: $(arch_hdrdir)/ruby/config.h
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index 6f732648f9..a78e740aed 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -59,5 +59,5 @@ checking_for(checking_message("Windows")) do
end
create_makefile('bigdecimal') {|mf|
- mf << "\nall:\n\nextconf.h: $(srcdir)/#{gemspec_name}\n"
+ mf << "GEMSPEC = #{gemspec_name}\n"
}