From e0c56b45a41f052223e23d222ca49c7e0225923e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 19 Sep 2019 22:09:43 +0900 Subject: Moved unmatch arity check to depend file To substitute suffixes and VPATH for nmake. --- ext/-test-/cxxanyargs/depend | 8 ++++++++ ext/-test-/cxxanyargs/extconf.rb | 13 +------------ 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'ext') diff --git a/ext/-test-/cxxanyargs/depend b/ext/-test-/cxxanyargs/depend index 61649e1199..a68afb82d7 100644 --- a/ext/-test-/cxxanyargs/depend +++ b/ext/-test-/cxxanyargs/depend @@ -1,3 +1,11 @@ +$(DLLIB) $(STATIC_LIB): failure.failed + +failure.failed: failure.cpp cxxanyargs.o + $(Q)$(RUBY) -rfileutils \\ + -e "err = IO.popen(%[$(MAKE) failure.o], err:[:child, :out], &:read)" \\ + -e "abort err unless /rb_define_method/ =~ err" \\ + -e "FileUtils.touch(*ARGV)" $@ + # AUTOGENERATED DEPENDENCIES START cxxanyargs.o: $(RUBY_EXTCONF_H) cxxanyargs.o: $(arch_hdrdir)/ruby/config.h diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb index 90ab85608a..b3f45477ad 100644 --- a/ext/-test-/cxxanyargs/extconf.rb +++ b/ext/-test-/cxxanyargs/extconf.rb @@ -24,16 +24,5 @@ end if ok $srcs = %w[cxxanyargs.cpp] $cleanfiles << "failure.failed" - create_makefile("-test-/cxxanyargs") do |mk| - mk << <