summaryrefslogtreecommitdiff
path: root/ext/-test-/cxxanyargs/depend
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/cxxanyargs/depend')
-rw-r--r--ext/-test-/cxxanyargs/depend13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/-test-/cxxanyargs/depend b/ext/-test-/cxxanyargs/depend
new file mode 100644
index 0000000000..fc3d8e45d9
--- /dev/null
+++ b/ext/-test-/cxxanyargs/depend
@@ -0,0 +1,13 @@
+$(TARGET_SO) $(STATIC_LIB): $(FAILURES:.cpp=.failed)
+
+.SUFFIXES: .failed
+
+.cpp.failed:
+ $(Q)$(RUBY) -rfileutils \
+ -e "t = ARGV.shift" \
+ -e "err = IO.popen(ARGV, err:[:child, :out], &:read)" \
+ -e "abort err unless /rb_define_method/ =~ err.b" \
+ -e "File.write(t, err)" $@ $(MAKE) $(*F).o
+
+# AUTOGENERATED DEPENDENCIES START
+# AUTOGENERATED DEPENDENCIES END